167 references to Strings
System.Linq.Expressions (167)
System\Dynamic\DynamicObject.cs (1)
586
string convertFailed = System.Linq.Expressions.
Strings
.DynamicObjectResultNotAssignable(
System\Dynamic\Utils\TypeUtils.cs (1)
89
throw new NotSupportedException(
Strings
.LiftingInExpressionRequiresDynamicCode(type));
System\Linq\Expressions\Error.cs (165)
19
return new ArgumentException(
Strings
.ReducibleMustOverrideReduce);
26
return new ArgumentException(
Strings
.ArgCntMustBeGreaterThanNameCnt);
33
return new InvalidOperationException(
Strings
.InvalidMetaObjectCreated(p0));
40
return new AmbiguousMatchException(
Strings
.AmbiguousMatchInExpandoObject(p0));
47
return new ArgumentException(
Strings
.SameKeyExistsInExpando(key), nameof(key));
54
return new KeyNotFoundException(
Strings
.KeyDoesNotExistInExpando(p0));
61
return new InvalidOperationException(
Strings
.CollectionModifiedWhileEnumerating);
68
return new NotSupportedException(
Strings
.CollectionReadOnly);
75
return new ArgumentException(
Strings
.MustReduceToDifferent);
82
return new InvalidOperationException(
Strings
.BinderNotCompatibleWithCallSite(p0, p1, p2));
89
return new InvalidOperationException(
Strings
.DynamicBindingNeedsRestrictions(p0, p1));
96
return new InvalidCastException(
Strings
.DynamicObjectResultNotAssignable(p0, p1, p2, p3));
103
return new InvalidCastException(
Strings
.DynamicBinderResultNotAssignable(p0, p1, p2));
110
return new InvalidOperationException(
Strings
.BindingCannotBeNull);
117
return new ArgumentException(
Strings
.ReducedNotCompatible);
124
return new ArgumentException(
Strings
.SetterHasNoParams, paramName);
131
return new ArgumentException(
Strings
.PropertyCannotHaveRefType, paramName);
138
return new ArgumentException(
Strings
.IndexesOfSetGetMustMatch, paramName);
145
return new InvalidOperationException(
Strings
.TypeParameterIsNotDelegate(p0));
152
return new ArgumentException(
Strings
.FirstArgumentMustBeCallSite);
159
return new ArgumentException(
Strings
.AccessorsCannotHaveVarArgs, paramName);
166
return new ArgumentException(
Strings
.AccessorsCannotHaveByRefArgs, paramName);
180
return new ArgumentException(
Strings
.TypeMustBeDerivedFromSystemDelegate);
187
return new InvalidOperationException(
Strings
.NoOrInvalidRuleProduced);
194
return new ArgumentException(
Strings
.BoundsCannotBeLessThanOne, paramName);
201
return new ArgumentException(
Strings
.TypeMustNotBeByRef, paramName);
209
return new ArgumentException(
Strings
.TypeMustNotBePointer, paramName);
217
return new ArgumentException(
Strings
.SetterMustBeVoid, paramName);
225
return new ArgumentException(
Strings
.PropertyTypeMustMatchGetter, paramName);
233
return new ArgumentException(
Strings
.PropertyTypeMustMatchSetter, paramName);
240
return new ArgumentException(
Strings
.BothAccessorsMustBeStatic, paramName);
247
return new ArgumentException(
Strings
.OnlyStaticFieldsHaveNullInstance, paramName);
254
return new ArgumentException(
Strings
.OnlyStaticPropertiesHaveNullInstance, paramName);
261
return new ArgumentException(
Strings
.OnlyStaticMethodsHaveNullInstance);
268
return new ArgumentException(
Strings
.PropertyTypeCannotBeVoid, paramName);
275
return new ArgumentException(
Strings
.InvalidUnboxType, paramName);
282
return new ArgumentException(
Strings
.ExpressionMustBeWriteable, paramName);
289
return new ArgumentException(
Strings
.ArgumentMustNotHaveValueType, paramName);
296
return new ArgumentException(
Strings
.MustBeReducible);
303
return new ArgumentException(
Strings
.AllTestValuesMustHaveSameType, paramName);
310
return new ArgumentException(
Strings
.AllCaseBodiesMustHaveSameType, paramName);
317
return new ArgumentException(
Strings
.DefaultBodyMustBeSupplied, paramName);
324
return new ArgumentException(
Strings
.LabelMustBeVoidOrHaveExpression, paramName);
331
return new ArgumentException(
Strings
.LabelTypeMustBeVoid, paramName);
338
return new ArgumentException(
Strings
.QuotedExpressionMustBeLambda, paramName);
345
return new ArgumentException(
Strings
.VariableMustNotBeByRef(p0, p1), paramName);
359
return new ArgumentException(
Strings
.DuplicateVariable(p0), paramName);
373
return new ArgumentException(
Strings
.StartEndMustBeOrdered);
380
return new ArgumentException(
Strings
.FaultCannotHaveCatchOrFinally, paramName);
387
return new ArgumentException(
Strings
.TryMustHaveCatchFinallyOrFault);
394
return new ArgumentException(
Strings
.BodyOfCatchMustHaveSameTypeAsBodyOfTry);
401
return new InvalidOperationException(
Strings
.ExtensionNodeMustOverrideProperty(p0));
408
return new ArgumentException(
Strings
.UserDefinedOperatorMustBeStatic(p0), paramName);
415
return new ArgumentException(
Strings
.UserDefinedOperatorMustNotBeVoid(p0), paramName);
422
return new InvalidOperationException(
Strings
.CoercionOperatorNotDefined(p0, p1));
429
return new InvalidOperationException(
Strings
.UnaryOperatorNotDefined(p0, p1));
436
return new InvalidOperationException(
Strings
.BinaryOperatorNotDefined(p0, p1, p2));
443
return new InvalidOperationException(
Strings
.ReferenceEqualityNotDefined(p0, p1));
450
return new InvalidOperationException(
Strings
.OperandTypesDoNotMatchParameters(p0, p1));
457
return new InvalidOperationException(
Strings
.OverloadOperatorTypeDoesNotMatchConversionType(p0, p1));
464
return new InvalidOperationException(
Strings
.ConversionIsNotSupportedForArithmeticTypes);
471
return new ArgumentException(
Strings
.ArgumentTypeCannotBeVoid);
478
return new ArgumentException(
Strings
.ArgumentMustBeArray, paramName);
485
return new ArgumentException(
Strings
.ArgumentMustBeBoolean, paramName);
492
return new ArgumentException(
Strings
.EqualityMustReturnBoolean(p0), paramName);
499
return new ArgumentException(
Strings
.ArgumentMustBeFieldInfoOrPropertyInfo, paramName);
506
return new ArgumentException(
Strings
.ArgumentMustBeFieldInfoOrPropertyInfoOrMethod, paramName);
521
return new ArgumentException(
Strings
.ArgumentMustBeInstanceMember, paramName);
535
return new ArgumentException(
Strings
.ArgumentMustBeInteger, paramName);
549
return new ArgumentException(
Strings
.ArgumentMustBeArrayIndexType, paramName);
563
return new ArgumentException(
Strings
.ArgumentMustBeSingleDimensionalArrayType, paramName);
570
return new ArgumentException(
Strings
.ArgumentTypesMustMatch);
577
return new ArgumentException(
Strings
.ArgumentTypesMustMatch, paramName);
584
return new InvalidOperationException(
Strings
.CannotAutoInitializeValueTypeElementThroughProperty(p0));
591
return new InvalidOperationException(
Strings
.CannotAutoInitializeValueTypeMemberThroughProperty(p0));
598
return new ArgumentException(
Strings
.IncorrectTypeForTypeAs(p0), paramName);
605
return new InvalidOperationException(
Strings
.CoalesceUsedOnNonNullType);
612
return new InvalidOperationException(
Strings
.ExpressionTypeCannotInitializeArrayType(p0, p1));
620
return new ArgumentException(
Strings
.ArgumentTypeDoesNotMatchMember(p0, p1), paramName);
634
return new ArgumentException(
Strings
.ArgumentMemberNotDeclOnType(p0, p1), paramName);
649
return new ArgumentException(
Strings
.ExpressionTypeDoesNotMatchReturn(p0, p1));
656
return new ArgumentException(
Strings
.ExpressionTypeDoesNotMatchAssignment(p0, p1));
663
return new ArgumentException(
Strings
.ExpressionTypeDoesNotMatchLabel(p0, p1));
670
return new ArgumentException(
Strings
.ExpressionTypeNotInvocable(p0), paramName);
677
return new ArgumentException(
Strings
.FieldNotDefinedForType(p0, p1));
684
return new ArgumentException(
Strings
.InstanceFieldNotDefinedForType(p0, p1));
691
return new ArgumentException(
Strings
.FieldInfoNotDefinedForType(p0, p1, p2));
698
return new ArgumentException(
Strings
.IncorrectNumberOfIndexes);
705
return new ArgumentException(
Strings
.IncorrectNumberOfLambdaDeclarationParameters);
713
return new ArgumentException(
Strings
.IncorrectNumberOfMembersForGivenConstructor);
720
return new ArgumentException(
Strings
.IncorrectNumberOfArgumentsForMembers);
727
return new ArgumentException(
Strings
.LambdaTypeMustBeDerivedFromSystemDelegate, paramName);
734
return new ArgumentException(
Strings
.MemberNotFieldOrProperty(p0), paramName);
741
return new ArgumentException(
Strings
.MethodContainsGenericParameters(p0), paramName);
748
return new ArgumentException(
Strings
.MethodIsGeneric(p0), paramName);
755
return new ArgumentException(
Strings
.MethodNotPropertyAccessor(p0, p1), paramName);
769
return new ArgumentException(
Strings
.PropertyDoesNotHaveGetter(p0), paramName);
783
return new ArgumentException(
Strings
.PropertyDoesNotHaveSetter(p0), paramName);
790
return new ArgumentException(
Strings
.PropertyDoesNotHaveAccessor(p0), paramName);
797
return new ArgumentException(
Strings
.NotAMemberOfType(p0, p1), paramName);
812
return new ArgumentException(
Strings
.NotAMemberOfAnyType(p0), paramName);
820
return new ArgumentException(
Strings
.ParameterExpressionNotValidAsDelegate(p0, p1));
827
return new ArgumentException(
Strings
.PropertyNotDefinedForType(p0, p1), paramName);
834
return new ArgumentException(
Strings
.InstancePropertyNotDefinedForType(p0, p1), paramName);
841
return new ArgumentException(
Strings
.InstancePropertyWithoutParameterNotDefinedForType(p0, p1));
848
return new ArgumentException(
Strings
.InstancePropertyWithSpecifiedParametersNotDefinedForType(p0, p1, p2), paramName);
855
return new ArgumentException(
Strings
.InstanceAndMethodTypeMismatch(p0, p1, p2));
863
return new ArgumentException(
Strings
.TypeMissingDefaultConstructor(p0), paramName);
871
return new ArgumentException(
Strings
.ElementInitializerMethodNotAdd, paramName);
878
return new ArgumentException(
Strings
.ElementInitializerMethodNoRefOutParam(p0, p1), paramName);
885
return new ArgumentException(
Strings
.ElementInitializerMethodWithZeroArgs, paramName);
892
return new ArgumentException(
Strings
.ElementInitializerMethodStatic, paramName);
899
return new ArgumentException(
Strings
.TypeNotIEnumerable(p0), paramName);
907
return new ArgumentException(
Strings
.UnhandledBinary(p0), paramName);
914
return new ArgumentException(
Strings
.UnhandledBinding);
921
return new ArgumentException(
Strings
.UnhandledBindingType(p0));
929
return new ArgumentException(
Strings
.UnhandledUnary(p0), paramName);
936
return new ArgumentException(
Strings
.UnknownBindingType, $"bindings[{index}]");
943
return new ArgumentException(
Strings
.UserDefinedOpMustHaveConsistentTypes(p0, p1));
950
return new ArgumentException(
Strings
.UserDefinedOpMustHaveValidReturnType(p0, p1));
957
return new ArgumentException(
Strings
.LogicalOperatorMustHaveBooleanOperators(p0, p1));
964
return new InvalidOperationException(
Strings
.MethodWithArgsDoesNotExistOnType(p0, p1));
971
return new InvalidOperationException(
Strings
.GenericMethodWithArgsDoesNotExistOnType(p0, p1));
978
return new InvalidOperationException(
Strings
.MethodWithMoreThanOneMatch(p0, p1));
985
return new InvalidOperationException(
Strings
.PropertyWithMoreThanOneMatch(p0, p1));
992
return new ArgumentException(
Strings
.IncorrectNumberOfTypeArgsForFunc, paramName);
999
return new ArgumentException(
Strings
.IncorrectNumberOfTypeArgsForAction, paramName);
1006
return new ArgumentException(
Strings
.ArgumentCannotBeOfTypeVoid, paramName);
1013
return new InvalidOperationException(
Strings
.LabelTargetAlreadyDefined(p0));
1020
return new InvalidOperationException(
Strings
.LabelTargetUndefined(p0));
1027
return new InvalidOperationException(
Strings
.ControlCannotLeaveFinally);
1034
return new InvalidOperationException(
Strings
.ControlCannotLeaveFilterTest);
1041
return new InvalidOperationException(
Strings
.AmbiguousJump(p0));
1048
return new InvalidOperationException(
Strings
.ControlCannotEnterTry);
1055
return new InvalidOperationException(
Strings
.ControlCannotEnterExpression);
1062
return new InvalidOperationException(
Strings
.NonLocalJumpWithValue(p0));
1093
return new InvalidOperationException(
Strings
.InvalidLvalue(p0));
1101
return new InvalidOperationException(
Strings
.UndefinedVariable(p0, p1, p2));
1108
return new InvalidOperationException(
Strings
.CannotCloseOverByRef(p0, p1));
1115
return new InvalidOperationException(
Strings
.UnexpectedVarArgsCall(p0));
1122
return new InvalidOperationException(
Strings
.RethrowRequiresCatch);
1129
return new InvalidOperationException(
Strings
.TryNotAllowedInFilter);
1136
return new InvalidOperationException(
Strings
.MustRewriteToSameNode(p0, p1, p2));
1143
return new InvalidOperationException(
Strings
.MustRewriteChildToSameType(p0, p1, p2));
1150
return new InvalidOperationException(
Strings
.MustRewriteWithoutMethod(p0, p1));
1157
return new NotSupportedException(
Strings
.TryNotSupportedForMethodsWithRefArgs(p0));
1164
return new NotSupportedException(
Strings
.TryNotSupportedForValueTypeInstances(p0));
1172
return new ArgumentException(
Strings
.TestValueTypeDoesNotMatchComparisonMethodParameter(p0, p1));
1179
return new ArgumentException(
Strings
.SwitchValueTypeDoesNotMatchComparisonMethodParameter(p0, p1));
1213
return new ArgumentException(
Strings
.NonStaticConstructorRequired, paramName);
1221
return new InvalidOperationException(
Strings
.NonAbstractConstructorRequired);
1237
return new InvalidOperationException(
Strings
.EnumerationIsDone);
1245
return new ArgumentException(
Strings
.TypeContainsGenericParameters(p0), paramName);
1261
return new ArgumentException(
Strings
.TypeIsGeneric(p0), paramName);
1277
return new ArgumentException(
Strings
.IncorrectNumberOfConstructorArguments);
1285
return new ArgumentException(
Strings
.ExpressionTypeDoesNotMatchMethodParameter(p0, p1, p2), paramName);
1301
return new ArgumentException(
Strings
.ExpressionTypeDoesNotMatchParameter(p0, p1), paramName);
1317
return new InvalidOperationException(
Strings
.IncorrectNumberOfLambdaArguments);
1325
return new ArgumentException(
Strings
.IncorrectNumberOfMethodCallArguments(p0), paramName);
1333
return new ArgumentException(
Strings
.ExpressionTypeDoesNotMatchConstructorParameter(p0, p1), paramName);
1350
return new ArgumentException(
Strings
.ExpressionMustBeReadable, paramName);
1363
return new ArgumentException(
Strings
.InvalidArgumentValue_ParamName, paramName);
1368
return new ArgumentException(
Strings
.NonEmptyCollectionRequired, paramName);
1373
return new ArgumentException(
Strings
.InvalidNullValue(type), paramName);
1378
return new ArgumentException(
Strings
.InvalidObjectType(value?.GetType() as object ?? "null", type), paramName);