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