257 references to SR
System.Linq.Expressions (257)
System\Linq\Expressions\Interpreter\LightCompiler.cs (4)
957
throw new PlatformNotSupportedException(
SR
.Format(
SR
.UnsupportedExpressionType, node.NodeType));
1272
throw new PlatformNotSupportedException(
SR
.Format(
SR
.UnsupportedExpressionType, node.NodeType));
System\Linq\Expressions\Interpreter\Utilities.cs (2)
280
throw new KeyNotFoundException(
SR
.Format(
SR
.Arg_KeyNotFoundWithKey, key.ToString()));
System\Linq\Expressions\Strings.cs (251)
17
=>
SR
.Format(
SR
.LiftingInExpressionRequiresDynamicCode, type.FullName);
22
internal static string ReducibleMustOverrideReduce =>
SR
.ReducibleMustOverrideReduce;
27
internal static string MustReduceToDifferent =>
SR
.MustReduceToDifferent;
32
internal static string ReducedNotCompatible =>
SR
.ReducedNotCompatible;
37
internal static string SetterHasNoParams =>
SR
.SetterHasNoParams;
42
internal static string PropertyCannotHaveRefType =>
SR
.PropertyCannotHaveRefType;
47
internal static string IndexesOfSetGetMustMatch =>
SR
.IndexesOfSetGetMustMatch;
52
internal static string AccessorsCannotHaveVarArgs =>
SR
.AccessorsCannotHaveVarArgs;
57
internal static string AccessorsCannotHaveByRefArgs =>
SR
.AccessorsCannotHaveByRefArgs;
62
internal static string BoundsCannotBeLessThanOne =>
SR
.BoundsCannotBeLessThanOne;
67
internal static string TypeMustNotBeByRef =>
SR
.TypeMustNotBeByRef;
72
internal static string TypeMustNotBePointer =>
SR
.TypeMustNotBePointer;
77
internal static string SetterMustBeVoid =>
SR
.SetterMustBeVoid;
82
internal static string PropertyTypeMustMatchGetter =>
SR
.PropertyTypeMustMatchGetter;
87
internal static string PropertyTypeMustMatchSetter =>
SR
.PropertyTypeMustMatchSetter;
92
internal static string BothAccessorsMustBeStatic =>
SR
.BothAccessorsMustBeStatic;
97
internal static string OnlyStaticFieldsHaveNullInstance =>
SR
.OnlyStaticFieldsHaveNullInstance;
102
internal static string OnlyStaticPropertiesHaveNullInstance =>
SR
.OnlyStaticPropertiesHaveNullInstance;
107
internal static string OnlyStaticMethodsHaveNullInstance =>
SR
.OnlyStaticMethodsHaveNullInstance;
112
internal static string PropertyTypeCannotBeVoid =>
SR
.PropertyTypeCannotBeVoid;
117
internal static string InvalidUnboxType =>
SR
.InvalidUnboxType;
122
internal static string ExpressionMustBeWriteable =>
SR
.ExpressionMustBeWriteable;
127
internal static string ArgumentMustNotHaveValueType =>
SR
.ArgumentMustNotHaveValueType;
132
internal static string MustBeReducible =>
SR
.MustBeReducible;
137
internal static string AllTestValuesMustHaveSameType =>
SR
.AllTestValuesMustHaveSameType;
142
internal static string AllCaseBodiesMustHaveSameType =>
SR
.AllCaseBodiesMustHaveSameType;
147
internal static string DefaultBodyMustBeSupplied =>
SR
.DefaultBodyMustBeSupplied;
152
internal static string LabelMustBeVoidOrHaveExpression =>
SR
.LabelMustBeVoidOrHaveExpression;
157
internal static string LabelTypeMustBeVoid =>
SR
.LabelTypeMustBeVoid;
162
internal static string QuotedExpressionMustBeLambda =>
SR
.QuotedExpressionMustBeLambda;
167
internal static string CollectionModifiedWhileEnumerating =>
SR
.CollectionModifiedWhileEnumerating;
172
internal static string VariableMustNotBeByRef(object? p0, object? p1) =>
SR
.Format(
SR
.VariableMustNotBeByRef, p0, p1);
177
internal static string CollectionReadOnly =>
SR
.CollectionReadOnly;
182
internal static string AmbiguousMatchInExpandoObject(object? p0) =>
SR
.Format(
SR
.AmbiguousMatchInExpandoObject, p0);
187
internal static string SameKeyExistsInExpando(object? p0) =>
SR
.Format(
SR
.SameKeyExistsInExpando, p0);
192
internal static string KeyDoesNotExistInExpando(object? p0) =>
SR
.Format(
SR
.KeyDoesNotExistInExpando, p0);
197
internal static string ArgCntMustBeGreaterThanNameCnt =>
SR
.ArgCntMustBeGreaterThanNameCnt;
202
internal static string InvalidMetaObjectCreated(object? p0) =>
SR
.Format(
SR
.InvalidMetaObjectCreated, p0);
207
internal static string BinderNotCompatibleWithCallSite(object? p0, object? p1, object? p2) =>
SR
.Format(
SR
.BinderNotCompatibleWithCallSite, p0, p1, p2);
212
internal static string DynamicBindingNeedsRestrictions(object? p0, object? p1) =>
SR
.Format(
SR
.DynamicBindingNeedsRestrictions, p0, p1);
217
internal static string DynamicObjectResultNotAssignable(object? p0, object? p1, object? p2, object? p3) =>
SR
.Format(
SR
.DynamicObjectResultNotAssignable, p0, p1, p2, p3);
222
internal static string DynamicBinderResultNotAssignable(object? p0, object? p1, object? p2) =>
SR
.Format(
SR
.DynamicBinderResultNotAssignable, p0, p1, p2);
227
internal static string BindingCannotBeNull =>
SR
.BindingCannotBeNull;
232
internal static string DuplicateVariable(object? p0) =>
SR
.Format(
SR
.DuplicateVariable, p0);
237
internal static string ArgumentTypeCannotBeVoid =>
SR
.ArgumentTypeCannotBeVoid;
242
internal static string TypeParameterIsNotDelegate(object? p0) =>
SR
.Format(
SR
.TypeParameterIsNotDelegate, p0);
247
internal static string NoOrInvalidRuleProduced =>
SR
.NoOrInvalidRuleProduced;
252
internal static string TypeMustBeDerivedFromSystemDelegate =>
SR
.TypeMustBeDerivedFromSystemDelegate;
257
internal static string FirstArgumentMustBeCallSite =>
SR
.FirstArgumentMustBeCallSite;
262
internal static string StartEndMustBeOrdered =>
SR
.StartEndMustBeOrdered;
267
internal static string FaultCannotHaveCatchOrFinally =>
SR
.FaultCannotHaveCatchOrFinally;
272
internal static string TryMustHaveCatchFinallyOrFault =>
SR
.TryMustHaveCatchFinallyOrFault;
277
internal static string BodyOfCatchMustHaveSameTypeAsBodyOfTry =>
SR
.BodyOfCatchMustHaveSameTypeAsBodyOfTry;
282
internal static string ExtensionNodeMustOverrideProperty(object? p0) =>
SR
.Format(
SR
.ExtensionNodeMustOverrideProperty, p0);
287
internal static string UserDefinedOperatorMustBeStatic(object? p0) =>
SR
.Format(
SR
.UserDefinedOperatorMustBeStatic, p0);
292
internal static string UserDefinedOperatorMustNotBeVoid(object? p0) =>
SR
.Format(
SR
.UserDefinedOperatorMustNotBeVoid, p0);
297
internal static string CoercionOperatorNotDefined(object? p0, object? p1) =>
SR
.Format(
SR
.CoercionOperatorNotDefined, p0, p1);
302
internal static string UnaryOperatorNotDefined(object? p0, object? p1) =>
SR
.Format(
SR
.UnaryOperatorNotDefined, p0, p1);
307
internal static string BinaryOperatorNotDefined(object? p0, object? p1, object? p2) =>
SR
.Format(
SR
.BinaryOperatorNotDefined, p0, p1, p2);
312
internal static string ReferenceEqualityNotDefined(object? p0, object? p1) =>
SR
.Format(
SR
.ReferenceEqualityNotDefined, p0, p1);
317
internal static string OperandTypesDoNotMatchParameters(object? p0, object? p1) =>
SR
.Format(
SR
.OperandTypesDoNotMatchParameters, p0, p1);
322
internal static string OverloadOperatorTypeDoesNotMatchConversionType(object? p0, object? p1) =>
SR
.Format(
SR
.OverloadOperatorTypeDoesNotMatchConversionType, p0, p1);
327
internal static string ConversionIsNotSupportedForArithmeticTypes =>
SR
.ConversionIsNotSupportedForArithmeticTypes;
332
internal static string ArgumentMustBeArray =>
SR
.ArgumentMustBeArray;
337
internal static string ArgumentMustBeBoolean =>
SR
.ArgumentMustBeBoolean;
342
internal static string EqualityMustReturnBoolean(object? p0) =>
SR
.Format(
SR
.EqualityMustReturnBoolean, p0);
347
internal static string ArgumentMustBeFieldInfoOrPropertyInfo =>
SR
.ArgumentMustBeFieldInfoOrPropertyInfo;
352
internal static string ArgumentMustBeFieldInfoOrPropertyInfoOrMethod =>
SR
.ArgumentMustBeFieldInfoOrPropertyInfoOrMethod;
357
internal static string ArgumentMustBeInstanceMember =>
SR
.ArgumentMustBeInstanceMember;
362
internal static string ArgumentMustBeInteger =>
SR
.ArgumentMustBeInteger;
367
internal static string ArgumentMustBeArrayIndexType =>
SR
.ArgumentMustBeArrayIndexType;
372
internal static string ArgumentMustBeSingleDimensionalArrayType =>
SR
.ArgumentMustBeSingleDimensionalArrayType;
377
internal static string ArgumentTypesMustMatch =>
SR
.ArgumentTypesMustMatch;
382
internal static string CannotAutoInitializeValueTypeElementThroughProperty(object? p0) =>
SR
.Format(
SR
.CannotAutoInitializeValueTypeElementThroughProperty, p0);
387
internal static string CannotAutoInitializeValueTypeMemberThroughProperty(object? p0) =>
SR
.Format(
SR
.CannotAutoInitializeValueTypeMemberThroughProperty, p0);
392
internal static string IncorrectTypeForTypeAs(object? p0) =>
SR
.Format(
SR
.IncorrectTypeForTypeAs, p0);
397
internal static string CoalesceUsedOnNonNullType =>
SR
.CoalesceUsedOnNonNullType;
402
internal static string ExpressionTypeCannotInitializeArrayType(object? p0, object? p1) =>
SR
.Format(
SR
.ExpressionTypeCannotInitializeArrayType, p0, p1);
407
internal static string ArgumentTypeDoesNotMatchMember(object? p0, object? p1) =>
SR
.Format(
SR
.ArgumentTypeDoesNotMatchMember, p0, p1);
412
internal static string ArgumentMemberNotDeclOnType(object? p0, object? p1) =>
SR
.Format(
SR
.ArgumentMemberNotDeclOnType, p0, p1);
417
internal static string ExpressionTypeDoesNotMatchReturn(object? p0, object? p1) =>
SR
.Format(
SR
.ExpressionTypeDoesNotMatchReturn, p0, p1);
422
internal static string ExpressionTypeDoesNotMatchAssignment(object? p0, object? p1) =>
SR
.Format(
SR
.ExpressionTypeDoesNotMatchAssignment, p0, p1);
427
internal static string ExpressionTypeDoesNotMatchLabel(object? p0, object? p1) =>
SR
.Format(
SR
.ExpressionTypeDoesNotMatchLabel, p0, p1);
432
internal static string ExpressionTypeNotInvocable(object? p0) =>
SR
.Format(
SR
.ExpressionTypeNotInvocable, p0);
437
internal static string FieldNotDefinedForType(object? p0, object? p1) =>
SR
.Format(
SR
.FieldNotDefinedForType, p0, p1);
442
internal static string InstanceFieldNotDefinedForType(object? p0, object? p1) =>
SR
.Format(
SR
.InstanceFieldNotDefinedForType, p0, p1);
447
internal static string FieldInfoNotDefinedForType(object? p0, object? p1, object? p2) =>
SR
.Format(
SR
.FieldInfoNotDefinedForType, p0, p1, p2);
452
internal static string IncorrectNumberOfIndexes =>
SR
.IncorrectNumberOfIndexes;
457
internal static string IncorrectNumberOfLambdaDeclarationParameters =>
SR
.IncorrectNumberOfLambdaDeclarationParameters;
462
internal static string IncorrectNumberOfMembersForGivenConstructor =>
SR
.IncorrectNumberOfMembersForGivenConstructor;
467
internal static string IncorrectNumberOfArgumentsForMembers =>
SR
.IncorrectNumberOfArgumentsForMembers;
472
internal static string LambdaTypeMustBeDerivedFromSystemDelegate =>
SR
.LambdaTypeMustBeDerivedFromSystemDelegate;
477
internal static string MemberNotFieldOrProperty(object? p0) =>
SR
.Format(
SR
.MemberNotFieldOrProperty, p0);
482
internal static string MethodContainsGenericParameters(object? p0) =>
SR
.Format(
SR
.MethodContainsGenericParameters, p0);
487
internal static string MethodIsGeneric(object? p0) =>
SR
.Format(
SR
.MethodIsGeneric, p0);
492
internal static string MethodNotPropertyAccessor(object? p0, object? p1) =>
SR
.Format(
SR
.MethodNotPropertyAccessor, p0, p1);
497
internal static string PropertyDoesNotHaveGetter(object? p0) =>
SR
.Format(
SR
.PropertyDoesNotHaveGetter, p0);
502
internal static string PropertyDoesNotHaveSetter(object? p0) =>
SR
.Format(
SR
.PropertyDoesNotHaveSetter, p0);
507
internal static string PropertyDoesNotHaveAccessor(object? p0) =>
SR
.Format(
SR
.PropertyDoesNotHaveAccessor, p0);
512
internal static string NotAMemberOfType(object? p0, object? p1) =>
SR
.Format(
SR
.NotAMemberOfType, p0, p1);
517
internal static string NotAMemberOfAnyType(object? p0) =>
SR
.Format(
SR
.NotAMemberOfAnyType, p0);
522
internal static string ParameterExpressionNotValidAsDelegate(object? p0, object? p1) =>
SR
.Format(
SR
.ParameterExpressionNotValidAsDelegate, p0, p1);
527
internal static string PropertyNotDefinedForType(object? p0, object? p1) =>
SR
.Format(
SR
.PropertyNotDefinedForType, p0, p1);
532
internal static string InstancePropertyNotDefinedForType(object? p0, object? p1) =>
SR
.Format(
SR
.InstancePropertyNotDefinedForType, p0, p1);
537
internal static string InstancePropertyWithoutParameterNotDefinedForType(object? p0, object? p1) =>
SR
.Format(
SR
.InstancePropertyWithoutParameterNotDefinedForType, p0, p1);
542
internal static string InstancePropertyWithSpecifiedParametersNotDefinedForType(object? p0, object? p1, object? p2) =>
SR
.Format(
SR
.InstancePropertyWithSpecifiedParametersNotDefinedForType, p0, p1, p2);
547
internal static string InstanceAndMethodTypeMismatch(object? p0, object? p1, object? p2) =>
SR
.Format(
SR
.InstanceAndMethodTypeMismatch, p0, p1, p2);
552
internal static string TypeMissingDefaultConstructor(object? p0) =>
SR
.Format(
SR
.TypeMissingDefaultConstructor, p0);
557
internal static string ElementInitializerMethodNotAdd =>
SR
.ElementInitializerMethodNotAdd;
562
internal static string ElementInitializerMethodNoRefOutParam(object? p0, object? p1) =>
SR
.Format(
SR
.ElementInitializerMethodNoRefOutParam, p0, p1);
567
internal static string ElementInitializerMethodWithZeroArgs =>
SR
.ElementInitializerMethodWithZeroArgs;
572
internal static string ElementInitializerMethodStatic =>
SR
.ElementInitializerMethodStatic;
577
internal static string TypeNotIEnumerable(object? p0) =>
SR
.Format(
SR
.TypeNotIEnumerable, p0);
582
internal static string UnhandledBinary(object? p0) =>
SR
.Format(
SR
.UnhandledBinary, p0);
587
internal static string UnhandledBinding =>
SR
.UnhandledBinding;
592
internal static string UnhandledBindingType(object? p0) =>
SR
.Format(
SR
.UnhandledBindingType, p0);
597
internal static string UnhandledUnary(object? p0) =>
SR
.Format(
SR
.UnhandledUnary, p0);
602
internal static string UnknownBindingType =>
SR
.UnknownBindingType;
607
internal static string UserDefinedOpMustHaveConsistentTypes(object? p0, object? p1) =>
SR
.Format(
SR
.UserDefinedOpMustHaveConsistentTypes, p0, p1);
612
internal static string UserDefinedOpMustHaveValidReturnType(object? p0, object? p1) =>
SR
.Format(
SR
.UserDefinedOpMustHaveValidReturnType, p0, p1);
617
internal static string LogicalOperatorMustHaveBooleanOperators(object? p0, object? p1) =>
SR
.Format(
SR
.LogicalOperatorMustHaveBooleanOperators, p0, p1);
622
internal static string MethodWithArgsDoesNotExistOnType(object? p0, object? p1) =>
SR
.Format(
SR
.MethodWithArgsDoesNotExistOnType, p0, p1);
627
internal static string GenericMethodWithArgsDoesNotExistOnType(object? p0, object? p1) =>
SR
.Format(
SR
.GenericMethodWithArgsDoesNotExistOnType, p0, p1);
632
internal static string MethodWithMoreThanOneMatch(object? p0, object? p1) =>
SR
.Format(
SR
.MethodWithMoreThanOneMatch, p0, p1);
637
internal static string PropertyWithMoreThanOneMatch(object? p0, object? p1) =>
SR
.Format(
SR
.PropertyWithMoreThanOneMatch, p0, p1);
642
internal static string IncorrectNumberOfTypeArgsForFunc =>
SR
.IncorrectNumberOfTypeArgsForFunc;
647
internal static string IncorrectNumberOfTypeArgsForAction =>
SR
.IncorrectNumberOfTypeArgsForAction;
652
internal static string ArgumentCannotBeOfTypeVoid =>
SR
.ArgumentCannotBeOfTypeVoid;
657
internal static string LabelTargetAlreadyDefined(object? p0) =>
SR
.Format(
SR
.LabelTargetAlreadyDefined, p0);
662
internal static string LabelTargetUndefined(object? p0) =>
SR
.Format(
SR
.LabelTargetUndefined, p0);
667
internal static string ControlCannotLeaveFinally =>
SR
.ControlCannotLeaveFinally;
672
internal static string ControlCannotLeaveFilterTest =>
SR
.ControlCannotLeaveFilterTest;
677
internal static string AmbiguousJump(object? p0) =>
SR
.Format(
SR
.AmbiguousJump, p0);
682
internal static string ControlCannotEnterTry =>
SR
.ControlCannotEnterTry;
687
internal static string ControlCannotEnterExpression =>
SR
.ControlCannotEnterExpression;
692
internal static string NonLocalJumpWithValue(object? p0) =>
SR
.Format(
SR
.NonLocalJumpWithValue, p0);
714
internal static string InvalidLvalue(object? p0) =>
SR
.Format(
SR
.InvalidLvalue, p0);
719
internal static string UndefinedVariable(object? p0, object? p1, object? p2) =>
SR
.Format(
SR
.UndefinedVariable, p0, p1, p2);
724
internal static string CannotCloseOverByRef(object? p0, object? p1) =>
SR
.Format(
SR
.CannotCloseOverByRef, p0, p1);
729
internal static string UnexpectedVarArgsCall(object? p0) =>
SR
.Format(
SR
.UnexpectedVarArgsCall, p0);
734
internal static string RethrowRequiresCatch =>
SR
.RethrowRequiresCatch;
739
internal static string TryNotAllowedInFilter =>
SR
.TryNotAllowedInFilter;
744
internal static string MustRewriteToSameNode(object? p0, object? p1, object? p2) =>
SR
.Format(
SR
.MustRewriteToSameNode, p0, p1, p2);
749
internal static string MustRewriteChildToSameType(object? p0, object? p1, object? p2) =>
SR
.Format(
SR
.MustRewriteChildToSameType, p0, p1, p2);
754
internal static string MustRewriteWithoutMethod(object? p0, object? p1) =>
SR
.Format(
SR
.MustRewriteWithoutMethod, p0, p1);
759
internal static string TryNotSupportedForMethodsWithRefArgs(object? p0) =>
SR
.Format(
SR
.TryNotSupportedForMethodsWithRefArgs, p0);
764
internal static string TryNotSupportedForValueTypeInstances(object? p0) =>
SR
.Format(
SR
.TryNotSupportedForValueTypeInstances, p0);
769
internal static string TestValueTypeDoesNotMatchComparisonMethodParameter(object? p0, object? p1) =>
SR
.Format(
SR
.TestValueTypeDoesNotMatchComparisonMethodParameter, p0, p1);
774
internal static string SwitchValueTypeDoesNotMatchComparisonMethodParameter(object? p0, object? p1) =>
SR
.Format(
SR
.SwitchValueTypeDoesNotMatchComparisonMethodParameter, p0, p1);
786
internal static string NonStaticConstructorRequired =>
SR
.NonStaticConstructorRequired;
791
internal static string NonAbstractConstructorRequired =>
SR
.NonAbstractConstructorRequired;
796
internal static string ExpressionMustBeReadable =>
SR
.ExpressionMustBeReadable;
801
internal static string ExpressionTypeDoesNotMatchConstructorParameter(object? p0, object? p1) =>
SR
.Format(
SR
.ExpressionTypeDoesNotMatchConstructorParameter, p0, p1);
806
internal static string EnumerationIsDone =>
SR
.EnumerationIsDone;
811
internal static string TypeContainsGenericParameters(object? p0) =>
SR
.Format(
SR
.TypeContainsGenericParameters, p0);
816
internal static string TypeIsGeneric(object? p0) =>
SR
.Format(
SR
.TypeIsGeneric, p0);
820
internal static string InvalidArgumentValue_ParamName =>
SR
.InvalidArgumentValue_ParamName;
825
internal static string NonEmptyCollectionRequired =>
SR
.NonEmptyCollectionRequired;
830
internal static string InvalidNullValue(object? p0) =>
SR
.Format(
SR
.InvalidNullValue, p0);
835
internal static string InvalidObjectType(object? p0, object? p1) =>
SR
.Format(
SR
.InvalidObjectType, p0, p1);
840
internal static string ExpressionTypeDoesNotMatchMethodParameter(object? p0, object? p1, object? p2) =>
SR
.Format(
SR
.ExpressionTypeDoesNotMatchMethodParameter, p0, p1, p2);
845
internal static string ExpressionTypeDoesNotMatchParameter(object? p0, object? p1) =>
SR
.Format(
SR
.ExpressionTypeDoesNotMatchParameter, p0, p1);
850
internal static string IncorrectNumberOfMethodCallArguments(object? p0) =>
SR
.Format(
SR
.IncorrectNumberOfMethodCallArguments, p0);
855
internal static string IncorrectNumberOfLambdaArguments =>
SR
.IncorrectNumberOfLambdaArguments;
860
internal static string IncorrectNumberOfConstructorArguments =>
SR
.IncorrectNumberOfConstructorArguments;