Skip to content

Commit

Permalink
Remove string interning when forming custom field name
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy committed Dec 21, 2023
1 parent 4fcc352 commit 79328d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Mutators/InternalExpressionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public static string CustomFieldName(this Expression node)
{
var result = new StringBuilder();
BuildCustomFieldName(node, result);
return string.Intern(result.ToString());
return result.ToString();
}

public static Expression ExtendSelectMany(this Expression expression)
Expand Down Expand Up @@ -308,7 +308,7 @@ private static void BuildCustomFieldName(Expression node, StringBuilder result)
BuildCustomFieldName(memberExpression.Expression, result);
if (result.Length > 0)
result.Append("ё");
result.Append(string.Intern(memberExpression.Member.Name));
result.Append(memberExpression.Member.Name);
break;
case ExpressionType.Call:
var methodCallExpression = (MethodCallExpression)node;
Expand Down

0 comments on commit 79328d9

Please sign in to comment.