34 references to ToReadOnly
System.Core (34)
Microsoft\Scripting\Actions\CallInfo.cs (1)
71
var argNameCol = argNames.
ToReadOnly
();
Microsoft\Scripting\Ast\BlockExpression.cs (3)
753
var expressionList = expressions.
ToReadOnly
();
771
var expressionList = expressions.
ToReadOnly
();
772
var variableList = variables.
ToReadOnly
();
Microsoft\Scripting\Ast\DynamicExpression.cs (2)
710
var args = arguments.
ToReadOnly
();
1067
var args = arguments.
ToReadOnly
();
Microsoft\Scripting\Ast\ElementInit.cs (1)
112
var argumentsRO = arguments.
ToReadOnly
();
Microsoft\Scripting\Ast\Expression.cs (1)
275
value.
ToReadOnly
(),
Microsoft\Scripting\Ast\IndexExpression.cs (2)
189
var indexList = indexes.
ToReadOnly
();
344
var argList = arguments.
ToReadOnly
();
Microsoft\Scripting\Ast\InvocationExpression.cs (1)
182
var args = arguments.
ToReadOnly
();
Microsoft\Scripting\Ast\LambdaExpression.cs (4)
350
var parameterList = parameters.
ToReadOnly
();
466
var parameterList = parameters.
ToReadOnly
();
498
var paramList = parameters.
ToReadOnly
();
514
var paramList = parameters.
ToReadOnly
();
Microsoft\Scripting\Ast\ListInitExpression.cs (3)
149
var initializerlist = initializers.
ToReadOnly
();
188
var initializerlist = initializers.
ToReadOnly
();
229
var initializerlist = initializers.
ToReadOnly
();
Microsoft\Scripting\Ast\MemberInitExpression.cs (1)
175
var roBindings = bindings.
ToReadOnly
();
Microsoft\Scripting\Ast\MemberListBinding.cs (1)
97
var initList = initializers.
ToReadOnly
();
Microsoft\Scripting\Ast\MemberMemberBinding.cs (1)
92
ReadOnlyCollection<MemberBinding> roBindings = bindings.
ToReadOnly
();
Microsoft\Scripting\Ast\MethodCallExpression.cs (2)
795
ReadOnlyCollection<Expression> argList = arguments.
ToReadOnly
();
1034
ReadOnlyCollection<Expression> indexList = indexes.
ToReadOnly
();
Microsoft\Scripting\Ast\NewArrayExpression.cs (3)
153
ReadOnlyCollection<Expression> initializerList = initializers.
ToReadOnly
();
212
ReadOnlyCollection<Expression> boundsList = bounds.
ToReadOnly
();
234
return NewArrayExpression.Make(ExpressionType.NewArrayBounds, arrayType, bounds.
ToReadOnly
());
Microsoft\Scripting\Ast\NewExpression.cs (3)
169
var argList = arguments.
ToReadOnly
();
185
var memberList = members.
ToReadOnly
();
186
var argList = arguments.
ToReadOnly
();
Microsoft\Scripting\Ast\RuntimeVariablesExpression.cs (1)
108
var vars = variables.
ToReadOnly
();
Microsoft\Scripting\Ast\SwitchCase.cs (1)
100
var values = testValues.
ToReadOnly
();
Microsoft\Scripting\Ast\SwitchExpression.cs (1)
204
var caseList = cases.
ToReadOnly
();
Microsoft\Scripting\Ast\TryExpression.cs (1)
183
var @catch = handlers.
ToReadOnly
();
Microsoft\Scripting\Compiler\CompilerScope.cs (1)
288
var hoistedVars = GetVariables().Where(p => Definitions[p] == VariableStorageKind.Hoisted).
ToReadOnly
();