/* **************************************************************************** * * Copyright (c) Microsoft Corporation. * * This source code is subject to terms and conditions of the Apache License, Version 2.0. A * copy of the license can be found in the License.html file at the root of this distribution. If * you cannot locate the Apache License, Version 2.0, please send an email to * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound * by the terms of the Apache License, Version 2.0. * * You must not remove this notice, or any other, from this software. * * * ***************************************************************************/ using System; #if !FEATURE_CORE_DLR namespace Microsoft.Scripting.Ast { #else namespace System.Linq.Expressions { #endif internal static partial class Strings { private static string FormatString(string format, params object[] args) { return string.Format(System.Globalization.CultureInfo.CurrentCulture, format, args); } } #region Generated Exception Factory // *** BEGIN GENERATED CODE *** // generated by function: gen_expr_factory_core from: generate_exception_factory.py /// /// Strongly-typed and parameterized string factory. /// internal static partial class Strings { /// /// A string like "Method precondition violated" /// internal static string MethodPreconditionViolated { get { return "Method precondition violated"; } } /// /// A string like "Invalid argument value" /// internal static string InvalidArgumentValue { get { return "Invalid argument value"; } } /// /// A string like "Non-empty collection required" /// internal static string NonEmptyCollectionRequired { get { return "Non-empty collection required"; } } /// /// A string like "Argument count must be greater than number of named arguments." /// internal static string ArgCntMustBeGreaterThanNameCnt { get { return "Argument count must be greater than number of named arguments."; } } /// /// A string like "reducible nodes must override Expression.Reduce()" /// internal static string ReducibleMustOverrideReduce { get { return "reducible nodes must override Expression.Reduce()"; } } /// /// A string like "node cannot reduce to itself or null" /// internal static string MustReduceToDifferent { get { return "node cannot reduce to itself or null"; } } /// /// A string like "cannot assign from the reduced node type to the original node type" /// internal static string ReducedNotCompatible { get { return "cannot assign from the reduced node type to the original node type"; } } /// /// A string like "Setter must have parameters." /// internal static string SetterHasNoParams { get { return "Setter must have parameters."; } } /// /// A string like "Property cannot have a managed pointer type." /// internal static string PropertyCannotHaveRefType { get { return "Property cannot have a managed pointer type."; } } /// /// A string like "Indexing parameters of getter and setter must match." /// internal static string IndexesOfSetGetMustMatch { get { return "Indexing parameters of getter and setter must match."; } } /// /// A string like "Accessor method should not have VarArgs." /// internal static string AccessorsCannotHaveVarArgs { get { return "Accessor method should not have VarArgs."; } } /// /// A string like "Accessor indexes cannot be passed ByRef." /// internal static string AccessorsCannotHaveByRefArgs { get { return "Accessor indexes cannot be passed ByRef."; } } /// /// A string like "Bounds count cannot be less than 1" /// internal static string BoundsCannotBeLessThanOne { get { return "Bounds count cannot be less than 1"; } } /// /// A string like "type must not be ByRef" /// internal static string TypeMustNotBeByRef { get { return "type must not be ByRef"; } } /// /// A string like "Type doesn't have constructor with a given signature" /// internal static string TypeDoesNotHaveConstructorForTheSignature { get { return "Type doesn't have constructor with a given signature"; } } /// /// A string like "Count must be non-negative." /// internal static string CountCannotBeNegative { get { return "Count must be non-negative."; } } /// /// A string like "arrayType must be an array type" /// internal static string ArrayTypeMustBeArray { get { return "arrayType must be an array type"; } } /// /// A string like "Setter should have void type." /// internal static string SetterMustBeVoid { get { return "Setter should have void type."; } } /// /// A string like "Property type must match the value type of setter" /// internal static string PropertyTyepMustMatchSetter { get { return "Property type must match the value type of setter"; } } /// /// A string like "Both accessors must be static." /// internal static string BothAccessorsMustBeStatic { get { return "Both accessors must be static."; } } /// /// A string like "Static field requires null instance, non-static field requires non-null instance." /// internal static string OnlyStaticFieldsHaveNullInstance { get { return "Static field requires null instance, non-static field requires non-null instance."; } } /// /// A string like "Static property requires null instance, non-static property requires non-null instance." /// internal static string OnlyStaticPropertiesHaveNullInstance { get { return "Static property requires null instance, non-static property requires non-null instance."; } } /// /// A string like "Static method requires null instance, non-static method requires non-null instance." /// internal static string OnlyStaticMethodsHaveNullInstance { get { return "Static method requires null instance, non-static method requires non-null instance."; } } /// /// A string like "Property cannot have a void type." /// internal static string PropertyTypeCannotBeVoid { get { return "Property cannot have a void type."; } } /// /// A string like "Can only unbox from an object or interface type to a value type." /// internal static string InvalidUnboxType { get { return "Can only unbox from an object or interface type to a value type."; } } /// /// A string like "Expression must be readable" /// internal static string ExpressionMustBeReadable { get { return "Expression must be readable"; } } /// /// A string like "Expression must be writeable" /// internal static string ExpressionMustBeWriteable { get { return "Expression must be writeable"; } } /// /// A string like "Argument must not have a value type." /// internal static string ArgumentMustNotHaveValueType { get { return "Argument must not have a value type."; } } /// /// A string like "must be reducible node" /// internal static string MustBeReducible { get { return "must be reducible node"; } } /// /// A string like "All test values must have the same type." /// internal static string AllTestValuesMustHaveSameType { get { return "All test values must have the same type."; } } /// /// A string like "All case bodies and the default body must have the same type." /// internal static string AllCaseBodiesMustHaveSameType { get { return "All case bodies and the default body must have the same type."; } } /// /// A string like "Default body must be supplied if case bodies are not System.Void." /// internal static string DefaultBodyMustBeSupplied { get { return "Default body must be supplied if case bodies are not System.Void."; } } /// /// A string like "MethodBuilder does not have a valid TypeBuilder" /// internal static string MethodBuilderDoesNotHaveTypeBuilder { get { return "MethodBuilder does not have a valid TypeBuilder"; } } /// /// A string like "Type must be derived from System.Delegate" /// internal static string TypeMustBeDerivedFromSystemDelegate { get { return "Type must be derived from System.Delegate"; } } /// /// A string like "Argument type cannot be void" /// internal static string ArgumentTypeCannotBeVoid { get { return "Argument type cannot be void"; } } /// /// A string like "Label type must be System.Void if an expression is not supplied" /// internal static string LabelMustBeVoidOrHaveExpression { get { return "Label type must be System.Void if an expression is not supplied"; } } /// /// A string like "Type must be System.Void for this label argument" /// internal static string LabelTypeMustBeVoid { get { return "Type must be System.Void for this label argument"; } } /// /// A string like "Quoted expression must be a lambda" /// internal static string QuotedExpressionMustBeLambda { get { return "Quoted expression must be a lambda"; } } /// /// A string like "Variable '{0}' uses unsupported type '{1}'. Reference types are not supported for variables." /// internal static string VariableMustNotBeByRef(object p0, object p1) { return FormatString("Variable '{0}' uses unsupported type '{1}'. Reference types are not supported for variables.", p0, p1); } /// /// A string like "Found duplicate parameter '{0}'. Each ParameterExpression in the list must be a unique object." /// internal static string DuplicateVariable(object p0) { return FormatString("Found duplicate parameter '{0}'. Each ParameterExpression in the list must be a unique object.", p0); } /// /// A string like "Start and End must be well ordered" /// internal static string StartEndMustBeOrdered { get { return "Start and End must be well ordered"; } } /// /// A string like "fault cannot be used with catch or finally clauses" /// internal static string FaultCannotHaveCatchOrFinally { get { return "fault cannot be used with catch or finally clauses"; } } /// /// A string like "try must have at least one catch, finally, or fault clause" /// internal static string TryMustHaveCatchFinallyOrFault { get { return "try must have at least one catch, finally, or fault clause"; } } /// /// A string like "Body of catch must have the same type as body of try." /// internal static string BodyOfCatchMustHaveSameTypeAsBodyOfTry { get { return "Body of catch must have the same type as body of try."; } } /// /// A string like "Extension node must override the property {0}." /// internal static string ExtensionNodeMustOverrideProperty(object p0) { return FormatString("Extension node must override the property {0}.", p0); } /// /// A string like "User-defined operator method '{0}' must be static." /// internal static string UserDefinedOperatorMustBeStatic(object p0) { return FormatString("User-defined operator method '{0}' must be static.", p0); } /// /// A string like "User-defined operator method '{0}' must not be void." /// internal static string UserDefinedOperatorMustNotBeVoid(object p0) { return FormatString("User-defined operator method '{0}' must not be void.", p0); } /// /// A string like "No coercion operator is defined between types '{0}' and '{1}'." /// internal static string CoercionOperatorNotDefined(object p0, object p1) { return FormatString("No coercion operator is defined between types '{0}' and '{1}'.", p0, p1); } /// /// A string like "The result type '{0}' of the dynamic binding produced by binder '{1}' is not compatible with the result type '{2}' expected by the call site." /// internal static string DynamicBinderResultNotAssignable(object p0, object p1, object p2) { return FormatString("The result type '{0}' of the dynamic binding produced by binder '{1}' is not compatible with the result type '{2}' expected by the call site.", p0, p1, p2); } /// /// A string like "The result type '{0}' of the dynamic binding produced by the object with type '{1}' for the binder '{2}' is not compatible with the result type '{3}' expected by the call site." /// internal static string DynamicObjectResultNotAssignable(object p0, object p1, object p2, object p3) { return FormatString("The result type '{0}' of the dynamic binding produced by the object with type '{1}' for the binder '{2}' is not compatible with the result type '{3}' expected by the call site.", p0, p1, p2, p3); } /// /// A string like "The result of the dynamic binding produced by the object with type '{0}' for the binder '{1}' needs at least one restriction." /// internal static string DynamicBindingNeedsRestrictions(object p0, object p1) { return FormatString("The result of the dynamic binding produced by the object with type '{0}' for the binder '{1}' needs at least one restriction.", p0, p1); } /// /// A string like "The result type '{0}' of the binder '{1}' is not compatible with the result type '{2}' expected by the call site." /// internal static string BinderNotCompatibleWithCallSite(object p0, object p1, object p2) { return FormatString("The result type '{0}' of the binder '{1}' is not compatible with the result type '{2}' expected by the call site.", p0, p1, p2); } /// /// A string like "The unary operator {0} is not defined for the type '{1}'." /// internal static string UnaryOperatorNotDefined(object p0, object p1) { return FormatString("The unary operator {0} is not defined for the type '{1}'.", p0, p1); } /// /// A string like "The binary operator {0} is not defined for the types '{1}' and '{2}'." /// internal static string BinaryOperatorNotDefined(object p0, object p1, object p2) { return FormatString("The binary operator {0} is not defined for the types '{1}' and '{2}'.", p0, p1, p2); } /// /// A string like "Reference equality is not defined for the types '{0}' and '{1}'." /// internal static string ReferenceEqualityNotDefined(object p0, object p1) { return FormatString("Reference equality is not defined for the types '{0}' and '{1}'.", p0, p1); } /// /// A string like "The operands for operator '{0}' do not match the parameters of method '{1}'." /// internal static string OperandTypesDoNotMatchParameters(object p0, object p1) { return FormatString("The operands for operator '{0}' do not match the parameters of method '{1}'.", p0, p1); } /// /// A string like "The return type of overload method for operator '{0}' does not match the parameter type of conversion method '{1}'." /// internal static string OverloadOperatorTypeDoesNotMatchConversionType(object p0, object p1) { return FormatString("The return type of overload method for operator '{0}' does not match the parameter type of conversion method '{1}'.", p0, p1); } /// /// A string like "Conversion is not supported for arithmetic types without operator overloading." /// internal static string ConversionIsNotSupportedForArithmeticTypes { get { return "Conversion is not supported for arithmetic types without operator overloading."; } } /// /// A string like "Argument must be array" /// internal static string ArgumentMustBeArray { get { return "Argument must be array"; } } /// /// A string like "Argument must be boolean" /// internal static string ArgumentMustBeBoolean { get { return "Argument must be boolean"; } } /// /// A string like "The user-defined equality method '{0}' must return a boolean value." /// internal static string EqualityMustReturnBoolean(object p0) { return FormatString("The user-defined equality method '{0}' must return a boolean value.", p0); } /// /// A string like "Argument must be either a FieldInfo or PropertyInfo" /// internal static string ArgumentMustBeFieldInfoOrPropertInfo { get { return "Argument must be either a FieldInfo or PropertyInfo"; } } /// /// A string like "Argument must be either a FieldInfo, PropertyInfo or MethodInfo" /// internal static string ArgumentMustBeFieldInfoOrPropertInfoOrMethod { get { return "Argument must be either a FieldInfo, PropertyInfo or MethodInfo"; } } /// /// A string like "Argument must be an instance member" /// internal static string ArgumentMustBeInstanceMember { get { return "Argument must be an instance member"; } } /// /// A string like "Argument must be of an integer type" /// internal static string ArgumentMustBeInteger { get { return "Argument must be of an integer type"; } } /// /// A string like "Argument for array index must be of type Int32" /// internal static string ArgumentMustBeArrayIndexType { get { return "Argument for array index must be of type Int32"; } } /// /// A string like "Argument must be single dimensional array type" /// internal static string ArgumentMustBeSingleDimensionalArrayType { get { return "Argument must be single dimensional array type"; } } /// /// A string like "Argument types do not match" /// internal static string ArgumentTypesMustMatch { get { return "Argument types do not match"; } } /// /// A string like "Cannot auto initialize elements of value type through property '{0}', use assignment instead" /// internal static string CannotAutoInitializeValueTypeElementThroughProperty(object p0) { return FormatString("Cannot auto initialize elements of value type through property '{0}', use assignment instead", p0); } /// /// A string like "Cannot auto initialize members of value type through property '{0}', use assignment instead" /// internal static string CannotAutoInitializeValueTypeMemberThroughProperty(object p0) { return FormatString("Cannot auto initialize members of value type through property '{0}', use assignment instead", p0); } /// /// A string like "The type used in TypeAs Expression must be of reference or nullable type, {0} is neither" /// internal static string IncorrectTypeForTypeAs(object p0) { return FormatString("The type used in TypeAs Expression must be of reference or nullable type, {0} is neither", p0); } /// /// A string like "Coalesce used with type that cannot be null" /// internal static string CoalesceUsedOnNonNullType { get { return "Coalesce used with type that cannot be null"; } } /// /// A string like "An expression of type '{0}' cannot be used to initialize an array of type '{1}'" /// internal static string ExpressionTypeCannotInitializeArrayType(object p0, object p1) { return FormatString("An expression of type '{0}' cannot be used to initialize an array of type '{1}'", p0, p1); } /// /// A string like "Expression of type '{0}' cannot be used for constructor parameter of type '{1}'" /// internal static string ExpressionTypeDoesNotMatchConstructorParameter(object p0, object p1) { return FormatString("Expression of type '{0}' cannot be used for constructor parameter of type '{1}'", p0, p1); } /// /// A string like " Argument type '{0}' does not match the corresponding member type '{1}'" /// internal static string ArgumentTypeDoesNotMatchMember(object p0, object p1) { return FormatString(" Argument type '{0}' does not match the corresponding member type '{1}'", p0, p1); } /// /// A string like " The member '{0}' is not declared on type '{1}' being created" /// internal static string ArgumentMemberNotDeclOnType(object p0, object p1) { return FormatString(" The member '{0}' is not declared on type '{1}' being created", p0, p1); } /// /// A string like "Expression of type '{0}' cannot be used for parameter of type '{1}' of method '{2}'" /// internal static string ExpressionTypeDoesNotMatchMethodParameter(object p0, object p1, object p2) { return FormatString("Expression of type '{0}' cannot be used for parameter of type '{1}' of method '{2}'", p0, p1, p2); } /// /// A string like "Expression of type '{0}' cannot be used for parameter of type '{1}'" /// internal static string ExpressionTypeDoesNotMatchParameter(object p0, object p1) { return FormatString("Expression of type '{0}' cannot be used for parameter of type '{1}'", p0, p1); } /// /// A string like "Expression of type '{0}' cannot be used for return type '{1}'" /// internal static string ExpressionTypeDoesNotMatchReturn(object p0, object p1) { return FormatString("Expression of type '{0}' cannot be used for return type '{1}'", p0, p1); } /// /// A string like "Expression of type '{0}' cannot be used for assignment to type '{1}'" /// internal static string ExpressionTypeDoesNotMatchAssignment(object p0, object p1) { return FormatString("Expression of type '{0}' cannot be used for assignment to type '{1}'", p0, p1); } /// /// A string like "Expression of type '{0}' cannot be used for label of type '{1}'" /// internal static string ExpressionTypeDoesNotMatchLabel(object p0, object p1) { return FormatString("Expression of type '{0}' cannot be used for label of type '{1}'", p0, p1); } /// /// A string like "Expression of type '{0}' cannot be invoked" /// internal static string ExpressionTypeNotInvocable(object p0) { return FormatString("Expression of type '{0}' cannot be invoked", p0); } /// /// A string like "Field '{0}' is not defined for type '{1}'" /// internal static string FieldNotDefinedForType(object p0, object p1) { return FormatString("Field '{0}' is not defined for type '{1}'", p0, p1); } /// /// A string like "Instance field '{0}' is not defined for type '{1}'" /// internal static string InstanceFieldNotDefinedForType(object p0, object p1) { return FormatString("Instance field '{0}' is not defined for type '{1}'", p0, p1); } /// /// A string like "Field '{0}.{1}' is not defined for type '{2}'" /// internal static string FieldInfoNotDefinedForType(object p0, object p1, object p2) { return FormatString("Field '{0}.{1}' is not defined for type '{2}'", p0, p1, p2); } /// /// A string like "Incorrect number of indexes" /// internal static string IncorrectNumberOfIndexes { get { return "Incorrect number of indexes"; } } /// /// A string like "Incorrect number of arguments supplied for lambda invocation" /// internal static string IncorrectNumberOfLambdaArguments { get { return "Incorrect number of arguments supplied for lambda invocation"; } } /// /// A string like "Incorrect number of parameters supplied for lambda declaration" /// internal static string IncorrectNumberOfLambdaDeclarationParameters { get { return "Incorrect number of parameters supplied for lambda declaration"; } } /// /// A string like "Incorrect number of arguments supplied for call to method '{0}'" /// internal static string IncorrectNumberOfMethodCallArguments(object p0) { return FormatString("Incorrect number of arguments supplied for call to method '{0}'", p0); } /// /// A string like "Incorrect number of arguments for constructor" /// internal static string IncorrectNumberOfConstructorArguments { get { return "Incorrect number of arguments for constructor"; } } /// /// A string like " Incorrect number of members for constructor" /// internal static string IncorrectNumberOfMembersForGivenConstructor { get { return " Incorrect number of members for constructor"; } } /// /// A string like "Incorrect number of arguments for the given members " /// internal static string IncorrectNumberOfArgumentsForMembers { get { return "Incorrect number of arguments for the given members "; } } /// /// A string like "Lambda type parameter must be derived from System.Delegate" /// internal static string LambdaTypeMustBeDerivedFromSystemDelegate { get { return "Lambda type parameter must be derived from System.Delegate"; } } /// /// A string like "Member '{0}' not field or property" /// internal static string MemberNotFieldOrProperty(object p0) { return FormatString("Member '{0}' not field or property", p0); } /// /// A string like "Method {0} contains generic parameters" /// internal static string MethodContainsGenericParameters(object p0) { return FormatString("Method {0} contains generic parameters", p0); } /// /// A string like "Method {0} is a generic method definition" /// internal static string MethodIsGeneric(object p0) { return FormatString("Method {0} is a generic method definition", p0); } /// /// A string like "The method '{0}.{1}' is not a property accessor" /// internal static string MethodNotPropertyAccessor(object p0, object p1) { return FormatString("The method '{0}.{1}' is not a property accessor", p0, p1); } /// /// A string like "The property '{0}' has no 'get' accessor" /// internal static string PropertyDoesNotHaveGetter(object p0) { return FormatString("The property '{0}' has no 'get' accessor", p0); } /// /// A string like "The property '{0}' has no 'set' accessor" /// internal static string PropertyDoesNotHaveSetter(object p0) { return FormatString("The property '{0}' has no 'set' accessor", p0); } /// /// A string like "The property '{0}' has no 'get' or 'set' accessors" /// internal static string PropertyDoesNotHaveAccessor(object p0) { return FormatString("The property '{0}' has no 'get' or 'set' accessors", p0); } /// /// A string like "'{0}' is not a member of type '{1}'" /// internal static string NotAMemberOfType(object p0, object p1) { return FormatString("'{0}' is not a member of type '{1}'", p0, p1); } /// /// A string like "The operator '{0}' is not implemented for type '{1}'" /// internal static string OperatorNotImplementedForType(object p0, object p1) { return FormatString("The operator '{0}' is not implemented for type '{1}'", p0, p1); } /// /// A string like "ParameterExpression of type '{0}' cannot be used for delegate parameter of type '{1}'" /// internal static string ParameterExpressionNotValidAsDelegate(object p0, object p1) { return FormatString("ParameterExpression of type '{0}' cannot be used for delegate parameter of type '{1}'", p0, p1); } /// /// A string like "Property '{0}' is not defined for type '{1}'" /// internal static string PropertyNotDefinedForType(object p0, object p1) { return FormatString("Property '{0}' is not defined for type '{1}'", p0, p1); } /// /// A string like "Instance property '{0}' is not defined for type '{1}'" /// internal static string InstancePropertyNotDefinedForType(object p0, object p1) { return FormatString("Instance property '{0}' is not defined for type '{1}'", p0, p1); } /// /// A string like "Instance property '{0}' that takes no argument is not defined for type '{1}'" /// internal static string InstancePropertyWithoutParameterNotDefinedForType(object p0, object p1) { return FormatString("Instance property '{0}' that takes no argument is not defined for type '{1}'", p0, p1); } /// /// A string like "Instance property '{0}{1}' is not defined for type '{2}'" /// internal static string InstancePropertyWithSpecifiedParametersNotDefinedForType(object p0, object p1, object p2) { return FormatString("Instance property '{0}{1}' is not defined for type '{2}'", p0, p1, p2); } /// /// A string like "Method '{0}' declared on type '{1}' cannot be called with instance of type '{2}'" /// internal static string InstanceAndMethodTypeMismatch(object p0, object p1, object p2) { return FormatString("Method '{0}' declared on type '{1}' cannot be called with instance of type '{2}'", p0, p1, p2); } /// /// A string like "Type {0} contains generic parameters" /// internal static string TypeContainsGenericParameters(object p0) { return FormatString("Type {0} contains generic parameters", p0); } /// /// A string like "Type {0} is a generic type definition" /// internal static string TypeIsGeneric(object p0) { return FormatString("Type {0} is a generic type definition", p0); } /// /// A string like "Type '{0}' does not have a default constructor" /// internal static string TypeMissingDefaultConstructor(object p0) { return FormatString("Type '{0}' does not have a default constructor", p0); } /// /// A string like "List initializers must contain at least one initializer" /// internal static string ListInitializerWithZeroMembers { get { return "List initializers must contain at least one initializer"; } } /// /// A string like "Element initializer method must be named 'Add'" /// internal static string ElementInitializerMethodNotAdd { get { return "Element initializer method must be named 'Add'"; } } /// /// A string like "Parameter '{0}' of element initializer method '{1}' must not be a pass by reference parameter" /// internal static string ElementInitializerMethodNoRefOutParam(object p0, object p1) { return FormatString("Parameter '{0}' of element initializer method '{1}' must not be a pass by reference parameter", p0, p1); } /// /// A string like "Element initializer method must have at least 1 parameter" /// internal static string ElementInitializerMethodWithZeroArgs { get { return "Element initializer method must have at least 1 parameter"; } } /// /// A string like "Element initializer method must be an instance method" /// internal static string ElementInitializerMethodStatic { get { return "Element initializer method must be an instance method"; } } /// /// A string like "Type '{0}' is not IEnumerable" /// internal static string TypeNotIEnumerable(object p0) { return FormatString("Type '{0}' is not IEnumerable", p0); } /// /// A string like "Type parameter is {0}. Expected a delegate." /// internal static string TypeParameterIsNotDelegate(object p0) { return FormatString("Type parameter is {0}. Expected a delegate.", p0); } /// /// A string like "Unexpected coalesce operator." /// internal static string UnexpectedCoalesceOperator { get { return "Unexpected coalesce operator."; } } /// /// A string like "Cannot cast from type '{0}' to type '{1}" /// internal static string InvalidCast(object p0, object p1) { return FormatString("Cannot cast from type '{0}' to type '{1}", p0, p1); } /// /// A string like "Unhandled binary: {0}" /// internal static string UnhandledBinary(object p0) { return FormatString("Unhandled binary: {0}", p0); } /// /// A string like "Unhandled binding " /// internal static string UnhandledBinding { get { return "Unhandled binding "; } } /// /// A string like "Unhandled Binding Type: {0}" /// internal static string UnhandledBindingType(object p0) { return FormatString("Unhandled Binding Type: {0}", p0); } /// /// A string like "Unhandled convert: {0}" /// internal static string UnhandledConvert(object p0) { return FormatString("Unhandled convert: {0}", p0); } /// /// A string like "Unhandled Expression Type: {0}" /// internal static string UnhandledExpressionType(object p0) { return FormatString("Unhandled Expression Type: {0}", p0); } /// /// A string like "Unhandled unary: {0}" /// internal static string UnhandledUnary(object p0) { return FormatString("Unhandled unary: {0}", p0); } /// /// A string like "Unknown binding type" /// internal static string UnknownBindingType { get { return "Unknown binding type"; } } /// /// A string like "The user-defined operator method '{1}' for operator '{0}' must have identical parameter and return types." /// internal static string UserDefinedOpMustHaveConsistentTypes(object p0, object p1) { return FormatString("The user-defined operator method '{1}' for operator '{0}' must have identical parameter and return types.", p0, p1); } /// /// A string like "The user-defined operator method '{1}' for operator '{0}' must return the same type as its parameter or a derived type." /// internal static string UserDefinedOpMustHaveValidReturnType(object p0, object p1) { return FormatString("The user-defined operator method '{1}' for operator '{0}' must return the same type as its parameter or a derived type.", p0, p1); } /// /// A string like "The user-defined operator method '{1}' for operator '{0}' must have associated boolean True and False operators." /// internal static string LogicalOperatorMustHaveBooleanOperators(object p0, object p1) { return FormatString("The user-defined operator method '{1}' for operator '{0}' must have associated boolean True and False operators.", p0, p1); } /// /// A string like "No method '{0}' exists on type '{1}'." /// internal static string MethodDoesNotExistOnType(object p0, object p1) { return FormatString("No method '{0}' exists on type '{1}'.", p0, p1); } /// /// A string like "No method '{0}' on type '{1}' is compatible with the supplied arguments." /// internal static string MethodWithArgsDoesNotExistOnType(object p0, object p1) { return FormatString("No method '{0}' on type '{1}' is compatible with the supplied arguments.", p0, p1); } /// /// A string like "No generic method '{0}' on type '{1}' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic. " /// internal static string GenericMethodWithArgsDoesNotExistOnType(object p0, object p1) { return FormatString("No generic method '{0}' on type '{1}' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic. ", p0, p1); } /// /// A string like "More than one method '{0}' on type '{1}' is compatible with the supplied arguments." /// internal static string MethodWithMoreThanOneMatch(object p0, object p1) { return FormatString("More than one method '{0}' on type '{1}' is compatible with the supplied arguments.", p0, p1); } /// /// A string like "More than one property '{0}' on type '{1}' is compatible with the supplied arguments." /// internal static string PropertyWithMoreThanOneMatch(object p0, object p1) { return FormatString("More than one property '{0}' on type '{1}' is compatible with the supplied arguments.", p0, p1); } /// /// A string like "An incorrect number of type args were specified for the declaration of a Func type." /// internal static string IncorrectNumberOfTypeArgsForFunc { get { return "An incorrect number of type args were specified for the declaration of a Func type."; } } /// /// A string like "An incorrect number of type args were specified for the declaration of an Action type." /// internal static string IncorrectNumberOfTypeArgsForAction { get { return "An incorrect number of type args were specified for the declaration of an Action type."; } } /// /// A string like "Argument type cannot be System.Void." /// internal static string ArgumentCannotBeOfTypeVoid { get { return "Argument type cannot be System.Void."; } } /// /// A string like "More than one key matching '{0}' was found in the ExpandoObject." /// internal static string AmbiguousMatchInExpandoObject(object p0) { return FormatString("More than one key matching '{0}' was found in the ExpandoObject.", p0); } /// /// A string like "An element with the same key '{0}' already exists in the ExpandoObject." /// internal static string SameKeyExistsInExpando(object p0) { return FormatString("An element with the same key '{0}' already exists in the ExpandoObject.", p0); } /// /// A string like "The specified key '{0}' does not exist in the ExpandoObject." /// internal static string KeyDoesNotExistInExpando(object p0) { return FormatString("The specified key '{0}' does not exist in the ExpandoObject.", p0); } /// /// A string like "No or Invalid rule produced" /// internal static string NoOrInvalidRuleProduced { get { return "No or Invalid rule produced"; } } /// /// A string like "First argument of delegate must be CallSite" /// internal static string FirstArgumentMustBeCallSite { get { return "First argument of delegate must be CallSite"; } } /// /// A string like "Bind cannot return null." /// internal static string BindingCannotBeNull { get { return "Bind cannot return null."; } } /// /// A string like "Invalid operation: '{0}'" /// internal static string InvalidOperation(object p0) { return FormatString("Invalid operation: '{0}'", p0); } /// /// A string like "{0} must be greater than or equal to {1}" /// internal static string OutOfRange(object p0, object p1) { return FormatString("{0} must be greater than or equal to {1}", p0, p1); } /// /// A string like "Queue empty." /// internal static string QueueEmpty { get { return "Queue empty."; } } /// /// A string like "Cannot redefine label '{0}' in an inner block." /// internal static string LabelTargetAlreadyDefined(object p0) { return FormatString("Cannot redefine label '{0}' in an inner block.", p0); } /// /// A string like "Cannot jump to undefined label '{0}'." /// internal static string LabelTargetUndefined(object p0) { return FormatString("Cannot jump to undefined label '{0}'.", p0); } /// /// A string like "Control cannot leave a finally block." /// internal static string ControlCannotLeaveFinally { get { return "Control cannot leave a finally block."; } } /// /// A string like "Control cannot leave a filter test." /// internal static string ControlCannotLeaveFilterTest { get { return "Control cannot leave a filter test."; } } /// /// A string like "Cannot jump to ambiguous label '{0}'." /// internal static string AmbiguousJump(object p0) { return FormatString("Cannot jump to ambiguous label '{0}'.", p0); } /// /// A string like "Control cannot enter a try block." /// internal static string ControlCannotEnterTry { get { return "Control cannot enter a try block."; } } /// /// A string like "Control cannot enter an expression--only statements can be jumped into." /// internal static string ControlCannotEnterExpression { get { return "Control cannot enter an expression--only statements can be jumped into."; } } /// /// A string like "Cannot jump to non-local label '{0}' with a value. Only jumps to labels defined in outer blocks can pass values." /// internal static string NonLocalJumpWithValue(object p0) { return FormatString("Cannot jump to non-local label '{0}' with a value. Only jumps to labels defined in outer blocks can pass values.", p0); } /// /// A string like "Extension should have been reduced." /// internal static string ExtensionNotReduced { get { return "Extension should have been reduced."; } } /// /// A string like "CompileToMethod cannot compile constant '{0}' because it is a non-trivial value, such as a live object. Instead, create an expression tree that can construct this value." /// internal static string CannotCompileConstant(object p0) { return FormatString("CompileToMethod cannot compile constant '{0}' because it is a non-trivial value, such as a live object. Instead, create an expression tree that can construct this value.", p0); } /// /// A string like "Dynamic expressions are not supported by CompileToMethod. Instead, create an expression tree that uses System.Runtime.CompilerServices.CallSite." /// internal static string CannotCompileDynamic { get { return "Dynamic expressions are not supported by CompileToMethod. Instead, create an expression tree that uses System.Runtime.CompilerServices.CallSite."; } } /// /// A string like "Invalid lvalue for assignment: {0}." /// internal static string InvalidLvalue(object p0) { return FormatString("Invalid lvalue for assignment: {0}.", p0); } /// /// A string like "Invalid member type: {0}." /// internal static string InvalidMemberType(object p0) { return FormatString("Invalid member type: {0}.", p0); } /// /// A string like "unknown lift type: '{0}'." /// internal static string UnknownLiftType(object p0) { return FormatString("unknown lift type: '{0}'.", p0); } /// /// A string like "Invalid output directory." /// internal static string InvalidOutputDir { get { return "Invalid output directory."; } } /// /// A string like "Invalid assembly name or file extension." /// internal static string InvalidAsmNameOrExtension { get { return "Invalid assembly name or file extension."; } } /// /// A string like "Collection is read-only." /// internal static string CollectionReadOnly { get { return "Collection is read-only."; } } /// /// A string like "Cannot create instance of {0} because it contains generic parameters" /// internal static string IllegalNewGenericParams(object p0) { return FormatString("Cannot create instance of {0} because it contains generic parameters", p0); } /// /// A string like "variable '{0}' of type '{1}' referenced from scope '{2}', but it is not defined" /// internal static string UndefinedVariable(object p0, object p1, object p2) { return FormatString("variable '{0}' of type '{1}' referenced from scope '{2}', but it is not defined", p0, p1, p2); } /// /// A string like "Cannot close over byref parameter '{0}' referenced in lambda '{1}'" /// internal static string CannotCloseOverByRef(object p0, object p1) { return FormatString("Cannot close over byref parameter '{0}' referenced in lambda '{1}'", p0, p1); } /// /// A string like "Unexpected VarArgs call to method '{0}'" /// internal static string UnexpectedVarArgsCall(object p0) { return FormatString("Unexpected VarArgs call to method '{0}'", p0); } /// /// A string like "Rethrow statement is valid only inside a Catch block." /// internal static string RethrowRequiresCatch { get { return "Rethrow statement is valid only inside a Catch block."; } } /// /// A string like "Try expression is not allowed inside a filter body." /// internal static string TryNotAllowedInFilter { get { return "Try expression is not allowed inside a filter body."; } } /// /// A string like "When called from '{0}', rewriting a node of type '{1}' must return a non-null value of the same type. Alternatively, override '{2}' and change it to not visit children of this type." /// internal static string MustRewriteToSameNode(object p0, object p1, object p2) { return FormatString("When called from '{0}', rewriting a node of type '{1}' must return a non-null value of the same type. Alternatively, override '{2}' and change it to not visit children of this type.", p0, p1, p2); } /// /// A string like "Rewriting child expression from type '{0}' to type '{1}' is not allowed, because it would change the meaning of the operation. If this is intentional, override '{2}' and change it to allow this rewrite." /// internal static string MustRewriteChildToSameType(object p0, object p1, object p2) { return FormatString("Rewriting child expression from type '{0}' to type '{1}' is not allowed, because it would change the meaning of the operation. If this is intentional, override '{2}' and change it to allow this rewrite.", p0, p1, p2); } /// /// A string like "Rewritten expression calls operator method '{0}', but the original node had no operator method. If this is is intentional, override '{1}' and change it to allow this rewrite." /// internal static string MustRewriteWithoutMethod(object p0, object p1) { return FormatString("Rewritten expression calls operator method '{0}', but the original node had no operator method. If this is is intentional, override '{1}' and change it to allow this rewrite.", p0, p1); } /// /// A string like "The value null is not of type '{0}' and cannot be used in this collection." /// internal static string InvalidNullValue(object p0) { return FormatString("The value null is not of type '{0}' and cannot be used in this collection.", p0); } /// /// A string like "The value '{0}' is not of type '{1}' and cannot be used in this collection." /// internal static string InvalidObjectType(object p0, object p1) { return FormatString("The value '{0}' is not of type '{1}' and cannot be used in this collection.", p0, p1); } /// /// A string like "TryExpression is not supported as an argument to method '{0}' because it has an argument with by-ref type. Construct the tree so the TryExpression is not nested inside of this expression." /// internal static string TryNotSupportedForMethodsWithRefArgs(object p0) { return FormatString("TryExpression is not supported as an argument to method '{0}' because it has an argument with by-ref type. Construct the tree so the TryExpression is not nested inside of this expression.", p0); } /// /// A string like "TryExpression is not supported as a child expression when accessing a member on type '{0}' because it is a value type. Construct the tree so the TryExpression is not nested inside of this expression." /// internal static string TryNotSupportedForValueTypeInstances(object p0) { return FormatString("TryExpression is not supported as a child expression when accessing a member on type '{0}' because it is a value type. Construct the tree so the TryExpression is not nested inside of this expression.", p0); } /// /// A string like "Collection was modified; enumeration operation may not execute." /// internal static string CollectionModifiedWhileEnumerating { get { return "Collection was modified; enumeration operation may not execute."; } } /// /// A string like "Enumeration has either not started or has already finished." /// internal static string EnumerationIsDone { get { return "Enumeration has either not started or has already finished."; } } /// /// A string like "Dynamic operations can only be performed in homogenous AppDomain." /// internal static string HomogenousAppDomainRequired { get { return "Dynamic operations can only be performed in homogenous AppDomain."; } } /// /// A string like "Test value of type '{0}' cannot be used for the comparison method parameter of type '{1}'" /// internal static string TestValueTypeDoesNotMatchComparisonMethodParameter(object p0, object p1) { return FormatString("Test value of type '{0}' cannot be used for the comparison method parameter of type '{1}'", p0, p1); } /// /// A string like "Switch value of type '{0}' cannot be used for the comparison method parameter of type '{1}'" /// internal static string SwitchValueTypeDoesNotMatchComparisonMethodParameter(object p0, object p1) { return FormatString("Switch value of type '{0}' cannot be used for the comparison method parameter of type '{1}'", p0, p1); } /// /// A string like "An IDynamicMetaObjectProvider {0} created an invalid DynamicMetaObject instance." /// internal static string InvalidMetaObjectCreated(object p0) { return FormatString("An IDynamicMetaObjectProvider {0} created an invalid DynamicMetaObject instance.", p0); } /// /// A string like "DebugInfoGenerator created by CreatePdbGenerator can only be used with LambdaExpression.CompileToMethod." /// internal static string PdbGeneratorNeedsExpressionCompiler { get { return "DebugInfoGenerator created by CreatePdbGenerator can only be used with LambdaExpression.CompileToMethod."; } } } /// /// Strongly-typed and parameterized exception factory. /// internal static partial class Error { /// /// ArgumentException with message like "Argument count must be greater than number of named arguments." /// internal static Exception ArgCntMustBeGreaterThanNameCnt() { return new ArgumentException(Strings.ArgCntMustBeGreaterThanNameCnt); } /// /// ArgumentException with message like "reducible nodes must override Expression.Reduce()" /// internal static Exception ReducibleMustOverrideReduce() { return new ArgumentException(Strings.ReducibleMustOverrideReduce); } /// /// ArgumentException with message like "node cannot reduce to itself or null" /// internal static Exception MustReduceToDifferent() { return new ArgumentException(Strings.MustReduceToDifferent); } /// /// ArgumentException with message like "cannot assign from the reduced node type to the original node type" /// internal static Exception ReducedNotCompatible() { return new ArgumentException(Strings.ReducedNotCompatible); } /// /// ArgumentException with message like "Setter must have parameters." /// internal static Exception SetterHasNoParams() { return new ArgumentException(Strings.SetterHasNoParams); } /// /// ArgumentException with message like "Property cannot have a managed pointer type." /// internal static Exception PropertyCannotHaveRefType() { return new ArgumentException(Strings.PropertyCannotHaveRefType); } /// /// ArgumentException with message like "Indexing parameters of getter and setter must match." /// internal static Exception IndexesOfSetGetMustMatch() { return new ArgumentException(Strings.IndexesOfSetGetMustMatch); } /// /// ArgumentException with message like "Accessor method should not have VarArgs." /// internal static Exception AccessorsCannotHaveVarArgs() { return new ArgumentException(Strings.AccessorsCannotHaveVarArgs); } /// /// ArgumentException with message like "Accessor indexes cannot be passed ByRef." /// internal static Exception AccessorsCannotHaveByRefArgs() { return new ArgumentException(Strings.AccessorsCannotHaveByRefArgs); } /// /// ArgumentException with message like "Bounds count cannot be less than 1" /// internal static Exception BoundsCannotBeLessThanOne() { return new ArgumentException(Strings.BoundsCannotBeLessThanOne); } /// /// ArgumentException with message like "type must not be ByRef" /// internal static Exception TypeMustNotBeByRef() { return new ArgumentException(Strings.TypeMustNotBeByRef); } /// /// ArgumentException with message like "Type doesn't have constructor with a given signature" /// internal static Exception TypeDoesNotHaveConstructorForTheSignature() { return new ArgumentException(Strings.TypeDoesNotHaveConstructorForTheSignature); } /// /// ArgumentException with message like "Count must be non-negative." /// internal static Exception CountCannotBeNegative() { return new ArgumentException(Strings.CountCannotBeNegative); } /// /// ArgumentException with message like "arrayType must be an array type" /// internal static Exception ArrayTypeMustBeArray() { return new ArgumentException(Strings.ArrayTypeMustBeArray); } /// /// ArgumentException with message like "Setter should have void type." /// internal static Exception SetterMustBeVoid() { return new ArgumentException(Strings.SetterMustBeVoid); } /// /// ArgumentException with message like "Property type must match the value type of setter" /// internal static Exception PropertyTyepMustMatchSetter() { return new ArgumentException(Strings.PropertyTyepMustMatchSetter); } /// /// ArgumentException with message like "Both accessors must be static." /// internal static Exception BothAccessorsMustBeStatic() { return new ArgumentException(Strings.BothAccessorsMustBeStatic); } /// /// ArgumentException with message like "Static method requires null instance, non-static method requires non-null instance." /// internal static Exception OnlyStaticMethodsHaveNullInstance() { return new ArgumentException(Strings.OnlyStaticMethodsHaveNullInstance); } /// /// ArgumentException with message like "Property cannot have a void type." /// internal static Exception PropertyTypeCannotBeVoid() { return new ArgumentException(Strings.PropertyTypeCannotBeVoid); } /// /// ArgumentException with message like "Can only unbox from an object or interface type to a value type." /// internal static Exception InvalidUnboxType() { return new ArgumentException(Strings.InvalidUnboxType); } /// /// ArgumentException with message like "Argument must not have a value type." /// internal static Exception ArgumentMustNotHaveValueType() { return new ArgumentException(Strings.ArgumentMustNotHaveValueType); } /// /// ArgumentException with message like "must be reducible node" /// internal static Exception MustBeReducible() { return new ArgumentException(Strings.MustBeReducible); } /// /// ArgumentException with message like "Default body must be supplied if case bodies are not System.Void." /// internal static Exception DefaultBodyMustBeSupplied() { return new ArgumentException(Strings.DefaultBodyMustBeSupplied); } /// /// ArgumentException with message like "MethodBuilder does not have a valid TypeBuilder" /// internal static Exception MethodBuilderDoesNotHaveTypeBuilder() { return new ArgumentException(Strings.MethodBuilderDoesNotHaveTypeBuilder); } /// /// ArgumentException with message like "Type must be derived from System.Delegate" /// internal static Exception TypeMustBeDerivedFromSystemDelegate() { return new ArgumentException(Strings.TypeMustBeDerivedFromSystemDelegate); } /// /// ArgumentException with message like "Argument type cannot be void" /// internal static Exception ArgumentTypeCannotBeVoid() { return new ArgumentException(Strings.ArgumentTypeCannotBeVoid); } /// /// ArgumentException with message like "Label type must be System.Void if an expression is not supplied" /// internal static Exception LabelMustBeVoidOrHaveExpression() { return new ArgumentException(Strings.LabelMustBeVoidOrHaveExpression); } /// /// ArgumentException with message like "Type must be System.Void for this label argument" /// internal static Exception LabelTypeMustBeVoid() { return new ArgumentException(Strings.LabelTypeMustBeVoid); } /// /// ArgumentException with message like "Quoted expression must be a lambda" /// internal static Exception QuotedExpressionMustBeLambda() { return new ArgumentException(Strings.QuotedExpressionMustBeLambda); } /// /// ArgumentException with message like "Variable '{0}' uses unsupported type '{1}'. Reference types are not supported for variables." /// internal static Exception VariableMustNotBeByRef(object p0, object p1) { return new ArgumentException(Strings.VariableMustNotBeByRef(p0, p1)); } /// /// ArgumentException with message like "Found duplicate parameter '{0}'. Each ParameterExpression in the list must be a unique object." /// internal static Exception DuplicateVariable(object p0) { return new ArgumentException(Strings.DuplicateVariable(p0)); } /// /// ArgumentException with message like "Start and End must be well ordered" /// internal static Exception StartEndMustBeOrdered() { return new ArgumentException(Strings.StartEndMustBeOrdered); } /// /// ArgumentException with message like "fault cannot be used with catch or finally clauses" /// internal static Exception FaultCannotHaveCatchOrFinally() { return new ArgumentException(Strings.FaultCannotHaveCatchOrFinally); } /// /// ArgumentException with message like "try must have at least one catch, finally, or fault clause" /// internal static Exception TryMustHaveCatchFinallyOrFault() { return new ArgumentException(Strings.TryMustHaveCatchFinallyOrFault); } /// /// ArgumentException with message like "Body of catch must have the same type as body of try." /// internal static Exception BodyOfCatchMustHaveSameTypeAsBodyOfTry() { return new ArgumentException(Strings.BodyOfCatchMustHaveSameTypeAsBodyOfTry); } /// /// InvalidOperationException with message like "Extension node must override the property {0}." /// internal static Exception ExtensionNodeMustOverrideProperty(object p0) { return new InvalidOperationException(Strings.ExtensionNodeMustOverrideProperty(p0)); } /// /// ArgumentException with message like "User-defined operator method '{0}' must be static." /// internal static Exception UserDefinedOperatorMustBeStatic(object p0) { return new ArgumentException(Strings.UserDefinedOperatorMustBeStatic(p0)); } /// /// ArgumentException with message like "User-defined operator method '{0}' must not be void." /// internal static Exception UserDefinedOperatorMustNotBeVoid(object p0) { return new ArgumentException(Strings.UserDefinedOperatorMustNotBeVoid(p0)); } /// /// InvalidOperationException with message like "No coercion operator is defined between types '{0}' and '{1}'." /// internal static Exception CoercionOperatorNotDefined(object p0, object p1) { return new InvalidOperationException(Strings.CoercionOperatorNotDefined(p0, p1)); } /// /// InvalidCastException with message like "The result type '{0}' of the dynamic binding produced by binder '{1}' is not compatible with the result type '{2}' expected by the call site." /// internal static Exception DynamicBinderResultNotAssignable(object p0, object p1, object p2) { return new InvalidCastException(Strings.DynamicBinderResultNotAssignable(p0, p1, p2)); } /// /// InvalidCastException with message like "The result type '{0}' of the dynamic binding produced by the object with type '{1}' for the binder '{2}' is not compatible with the result type '{3}' expected by the call site." /// internal static Exception DynamicObjectResultNotAssignable(object p0, object p1, object p2, object p3) { return new InvalidCastException(Strings.DynamicObjectResultNotAssignable(p0, p1, p2, p3)); } /// /// InvalidOperationException with message like "The result of the dynamic binding produced by the object with type '{0}' for the binder '{1}' needs at least one restriction." /// internal static Exception DynamicBindingNeedsRestrictions(object p0, object p1) { return new InvalidOperationException(Strings.DynamicBindingNeedsRestrictions(p0, p1)); } /// /// InvalidOperationException with message like "The result type '{0}' of the binder '{1}' is not compatible with the result type '{2}' expected by the call site." /// internal static Exception BinderNotCompatibleWithCallSite(object p0, object p1, object p2) { return new InvalidOperationException(Strings.BinderNotCompatibleWithCallSite(p0, p1, p2)); } /// /// InvalidOperationException with message like "The unary operator {0} is not defined for the type '{1}'." /// internal static Exception UnaryOperatorNotDefined(object p0, object p1) { return new InvalidOperationException(Strings.UnaryOperatorNotDefined(p0, p1)); } /// /// InvalidOperationException with message like "The binary operator {0} is not defined for the types '{1}' and '{2}'." /// internal static Exception BinaryOperatorNotDefined(object p0, object p1, object p2) { return new InvalidOperationException(Strings.BinaryOperatorNotDefined(p0, p1, p2)); } /// /// InvalidOperationException with message like "Reference equality is not defined for the types '{0}' and '{1}'." /// internal static Exception ReferenceEqualityNotDefined(object p0, object p1) { return new InvalidOperationException(Strings.ReferenceEqualityNotDefined(p0, p1)); } /// /// InvalidOperationException with message like "The operands for operator '{0}' do not match the parameters of method '{1}'." /// internal static Exception OperandTypesDoNotMatchParameters(object p0, object p1) { return new InvalidOperationException(Strings.OperandTypesDoNotMatchParameters(p0, p1)); } /// /// InvalidOperationException with message like "The return type of overload method for operator '{0}' does not match the parameter type of conversion method '{1}'." /// internal static Exception OverloadOperatorTypeDoesNotMatchConversionType(object p0, object p1) { return new InvalidOperationException(Strings.OverloadOperatorTypeDoesNotMatchConversionType(p0, p1)); } /// /// InvalidOperationException with message like "Conversion is not supported for arithmetic types without operator overloading." /// internal static Exception ConversionIsNotSupportedForArithmeticTypes() { return new InvalidOperationException(Strings.ConversionIsNotSupportedForArithmeticTypes); } /// /// ArgumentException with message like "Argument must be array" /// internal static Exception ArgumentMustBeArray() { return new ArgumentException(Strings.ArgumentMustBeArray); } /// /// ArgumentException with message like "Argument must be boolean" /// internal static Exception ArgumentMustBeBoolean() { return new ArgumentException(Strings.ArgumentMustBeBoolean); } /// /// ArgumentException with message like "The user-defined equality method '{0}' must return a boolean value." /// internal static Exception EqualityMustReturnBoolean(object p0) { return new ArgumentException(Strings.EqualityMustReturnBoolean(p0)); } /// /// ArgumentException with message like "Argument must be either a FieldInfo or PropertyInfo" /// internal static Exception ArgumentMustBeFieldInfoOrPropertInfo() { return new ArgumentException(Strings.ArgumentMustBeFieldInfoOrPropertInfo); } /// /// ArgumentException with message like "Argument must be either a FieldInfo, PropertyInfo or MethodInfo" /// internal static Exception ArgumentMustBeFieldInfoOrPropertInfoOrMethod() { return new ArgumentException(Strings.ArgumentMustBeFieldInfoOrPropertInfoOrMethod); } /// /// ArgumentException with message like "Argument must be an instance member" /// internal static Exception ArgumentMustBeInstanceMember() { return new ArgumentException(Strings.ArgumentMustBeInstanceMember); } /// /// ArgumentException with message like "Argument must be of an integer type" /// internal static Exception ArgumentMustBeInteger() { return new ArgumentException(Strings.ArgumentMustBeInteger); } /// /// ArgumentException with message like "Argument for array index must be of type Int32" /// internal static Exception ArgumentMustBeArrayIndexType() { return new ArgumentException(Strings.ArgumentMustBeArrayIndexType); } /// /// ArgumentException with message like "Argument must be single dimensional array type" /// internal static Exception ArgumentMustBeSingleDimensionalArrayType() { return new ArgumentException(Strings.ArgumentMustBeSingleDimensionalArrayType); } /// /// ArgumentException with message like "Argument types do not match" /// internal static Exception ArgumentTypesMustMatch() { return new ArgumentException(Strings.ArgumentTypesMustMatch); } /// /// InvalidOperationException with message like "Cannot auto initialize elements of value type through property '{0}', use assignment instead" /// internal static Exception CannotAutoInitializeValueTypeElementThroughProperty(object p0) { return new InvalidOperationException(Strings.CannotAutoInitializeValueTypeElementThroughProperty(p0)); } /// /// InvalidOperationException with message like "Cannot auto initialize members of value type through property '{0}', use assignment instead" /// internal static Exception CannotAutoInitializeValueTypeMemberThroughProperty(object p0) { return new InvalidOperationException(Strings.CannotAutoInitializeValueTypeMemberThroughProperty(p0)); } /// /// ArgumentException with message like "The type used in TypeAs Expression must be of reference or nullable type, {0} is neither" /// internal static Exception IncorrectTypeForTypeAs(object p0) { return new ArgumentException(Strings.IncorrectTypeForTypeAs(p0)); } /// /// InvalidOperationException with message like "Coalesce used with type that cannot be null" /// internal static Exception CoalesceUsedOnNonNullType() { return new InvalidOperationException(Strings.CoalesceUsedOnNonNullType); } /// /// InvalidOperationException with message like "An expression of type '{0}' cannot be used to initialize an array of type '{1}'" /// internal static Exception ExpressionTypeCannotInitializeArrayType(object p0, object p1) { return new InvalidOperationException(Strings.ExpressionTypeCannotInitializeArrayType(p0, p1)); } /// /// ArgumentException with message like "Expression of type '{0}' cannot be used for constructor parameter of type '{1}'" /// internal static Exception ExpressionTypeDoesNotMatchConstructorParameter(object p0, object p1) { return new ArgumentException(Strings.ExpressionTypeDoesNotMatchConstructorParameter(p0, p1)); } /// /// ArgumentException with message like " Argument type '{0}' does not match the corresponding member type '{1}'" /// internal static Exception ArgumentTypeDoesNotMatchMember(object p0, object p1) { return new ArgumentException(Strings.ArgumentTypeDoesNotMatchMember(p0, p1)); } /// /// ArgumentException with message like " The member '{0}' is not declared on type '{1}' being created" /// internal static Exception ArgumentMemberNotDeclOnType(object p0, object p1) { return new ArgumentException(Strings.ArgumentMemberNotDeclOnType(p0, p1)); } /// /// ArgumentException with message like "Expression of type '{0}' cannot be used for parameter of type '{1}' of method '{2}'" /// internal static Exception ExpressionTypeDoesNotMatchMethodParameter(object p0, object p1, object p2) { return new ArgumentException(Strings.ExpressionTypeDoesNotMatchMethodParameter(p0, p1, p2)); } /// /// ArgumentException with message like "Expression of type '{0}' cannot be used for parameter of type '{1}'" /// internal static Exception ExpressionTypeDoesNotMatchParameter(object p0, object p1) { return new ArgumentException(Strings.ExpressionTypeDoesNotMatchParameter(p0, p1)); } /// /// ArgumentException with message like "Expression of type '{0}' cannot be used for return type '{1}'" /// internal static Exception ExpressionTypeDoesNotMatchReturn(object p0, object p1) { return new ArgumentException(Strings.ExpressionTypeDoesNotMatchReturn(p0, p1)); } /// /// ArgumentException with message like "Expression of type '{0}' cannot be used for assignment to type '{1}'" /// internal static Exception ExpressionTypeDoesNotMatchAssignment(object p0, object p1) { return new ArgumentException(Strings.ExpressionTypeDoesNotMatchAssignment(p0, p1)); } /// /// ArgumentException with message like "Expression of type '{0}' cannot be used for label of type '{1}'" /// internal static Exception ExpressionTypeDoesNotMatchLabel(object p0, object p1) { return new ArgumentException(Strings.ExpressionTypeDoesNotMatchLabel(p0, p1)); } /// /// ArgumentException with message like "Expression of type '{0}' cannot be invoked" /// internal static Exception ExpressionTypeNotInvocable(object p0) { return new ArgumentException(Strings.ExpressionTypeNotInvocable(p0)); } /// /// ArgumentException with message like "Field '{0}' is not defined for type '{1}'" /// internal static Exception FieldNotDefinedForType(object p0, object p1) { return new ArgumentException(Strings.FieldNotDefinedForType(p0, p1)); } /// /// ArgumentException with message like "Instance field '{0}' is not defined for type '{1}'" /// internal static Exception InstanceFieldNotDefinedForType(object p0, object p1) { return new ArgumentException(Strings.InstanceFieldNotDefinedForType(p0, p1)); } /// /// ArgumentException with message like "Field '{0}.{1}' is not defined for type '{2}'" /// internal static Exception FieldInfoNotDefinedForType(object p0, object p1, object p2) { return new ArgumentException(Strings.FieldInfoNotDefinedForType(p0, p1, p2)); } /// /// ArgumentException with message like "Incorrect number of indexes" /// internal static Exception IncorrectNumberOfIndexes() { return new ArgumentException(Strings.IncorrectNumberOfIndexes); } /// /// InvalidOperationException with message like "Incorrect number of arguments supplied for lambda invocation" /// internal static Exception IncorrectNumberOfLambdaArguments() { return new InvalidOperationException(Strings.IncorrectNumberOfLambdaArguments); } /// /// ArgumentException with message like "Incorrect number of parameters supplied for lambda declaration" /// internal static Exception IncorrectNumberOfLambdaDeclarationParameters() { return new ArgumentException(Strings.IncorrectNumberOfLambdaDeclarationParameters); } /// /// ArgumentException with message like "Incorrect number of arguments supplied for call to method '{0}'" /// internal static Exception IncorrectNumberOfMethodCallArguments(object p0) { return new ArgumentException(Strings.IncorrectNumberOfMethodCallArguments(p0)); } /// /// ArgumentException with message like "Incorrect number of arguments for constructor" /// internal static Exception IncorrectNumberOfConstructorArguments() { return new ArgumentException(Strings.IncorrectNumberOfConstructorArguments); } /// /// ArgumentException with message like " Incorrect number of members for constructor" /// internal static Exception IncorrectNumberOfMembersForGivenConstructor() { return new ArgumentException(Strings.IncorrectNumberOfMembersForGivenConstructor); } /// /// ArgumentException with message like "Incorrect number of arguments for the given members " /// internal static Exception IncorrectNumberOfArgumentsForMembers() { return new ArgumentException(Strings.IncorrectNumberOfArgumentsForMembers); } /// /// ArgumentException with message like "Lambda type parameter must be derived from System.Delegate" /// internal static Exception LambdaTypeMustBeDerivedFromSystemDelegate() { return new ArgumentException(Strings.LambdaTypeMustBeDerivedFromSystemDelegate); } /// /// ArgumentException with message like "Member '{0}' not field or property" /// internal static Exception MemberNotFieldOrProperty(object p0) { return new ArgumentException(Strings.MemberNotFieldOrProperty(p0)); } /// /// ArgumentException with message like "Method {0} contains generic parameters" /// internal static Exception MethodContainsGenericParameters(object p0) { return new ArgumentException(Strings.MethodContainsGenericParameters(p0)); } /// /// ArgumentException with message like "Method {0} is a generic method definition" /// internal static Exception MethodIsGeneric(object p0) { return new ArgumentException(Strings.MethodIsGeneric(p0)); } /// /// ArgumentException with message like "The method '{0}.{1}' is not a property accessor" /// internal static Exception MethodNotPropertyAccessor(object p0, object p1) { return new ArgumentException(Strings.MethodNotPropertyAccessor(p0, p1)); } /// /// ArgumentException with message like "The property '{0}' has no 'get' accessor" /// internal static Exception PropertyDoesNotHaveGetter(object p0) { return new ArgumentException(Strings.PropertyDoesNotHaveGetter(p0)); } /// /// ArgumentException with message like "The property '{0}' has no 'set' accessor" /// internal static Exception PropertyDoesNotHaveSetter(object p0) { return new ArgumentException(Strings.PropertyDoesNotHaveSetter(p0)); } /// /// ArgumentException with message like "The property '{0}' has no 'get' or 'set' accessors" /// internal static Exception PropertyDoesNotHaveAccessor(object p0) { return new ArgumentException(Strings.PropertyDoesNotHaveAccessor(p0)); } /// /// ArgumentException with message like "'{0}' is not a member of type '{1}'" /// internal static Exception NotAMemberOfType(object p0, object p1) { return new ArgumentException(Strings.NotAMemberOfType(p0, p1)); } /// /// NotImplementedException with message like "The operator '{0}' is not implemented for type '{1}'" /// internal static Exception OperatorNotImplementedForType(object p0, object p1) { return new NotImplementedException(Strings.OperatorNotImplementedForType(p0, p1)); } /// /// ArgumentException with message like "ParameterExpression of type '{0}' cannot be used for delegate parameter of type '{1}'" /// internal static Exception ParameterExpressionNotValidAsDelegate(object p0, object p1) { return new ArgumentException(Strings.ParameterExpressionNotValidAsDelegate(p0, p1)); } /// /// ArgumentException with message like "Property '{0}' is not defined for type '{1}'" /// internal static Exception PropertyNotDefinedForType(object p0, object p1) { return new ArgumentException(Strings.PropertyNotDefinedForType(p0, p1)); } /// /// ArgumentException with message like "Instance property '{0}' is not defined for type '{1}'" /// internal static Exception InstancePropertyNotDefinedForType(object p0, object p1) { return new ArgumentException(Strings.InstancePropertyNotDefinedForType(p0, p1)); } /// /// ArgumentException with message like "Instance property '{0}' that takes no argument is not defined for type '{1}'" /// internal static Exception InstancePropertyWithoutParameterNotDefinedForType(object p0, object p1) { return new ArgumentException(Strings.InstancePropertyWithoutParameterNotDefinedForType(p0, p1)); } /// /// ArgumentException with message like "Instance property '{0}{1}' is not defined for type '{2}'" /// internal static Exception InstancePropertyWithSpecifiedParametersNotDefinedForType(object p0, object p1, object p2) { return new ArgumentException(Strings.InstancePropertyWithSpecifiedParametersNotDefinedForType(p0, p1, p2)); } /// /// ArgumentException with message like "Method '{0}' declared on type '{1}' cannot be called with instance of type '{2}'" /// internal static Exception InstanceAndMethodTypeMismatch(object p0, object p1, object p2) { return new ArgumentException(Strings.InstanceAndMethodTypeMismatch(p0, p1, p2)); } /// /// ArgumentException with message like "Type {0} contains generic parameters" /// internal static Exception TypeContainsGenericParameters(object p0) { return new ArgumentException(Strings.TypeContainsGenericParameters(p0)); } /// /// ArgumentException with message like "Type {0} is a generic type definition" /// internal static Exception TypeIsGeneric(object p0) { return new ArgumentException(Strings.TypeIsGeneric(p0)); } /// /// ArgumentException with message like "Type '{0}' does not have a default constructor" /// internal static Exception TypeMissingDefaultConstructor(object p0) { return new ArgumentException(Strings.TypeMissingDefaultConstructor(p0)); } /// /// ArgumentException with message like "List initializers must contain at least one initializer" /// internal static Exception ListInitializerWithZeroMembers() { return new ArgumentException(Strings.ListInitializerWithZeroMembers); } /// /// ArgumentException with message like "Element initializer method must be named 'Add'" /// internal static Exception ElementInitializerMethodNotAdd() { return new ArgumentException(Strings.ElementInitializerMethodNotAdd); } /// /// ArgumentException with message like "Parameter '{0}' of element initializer method '{1}' must not be a pass by reference parameter" /// internal static Exception ElementInitializerMethodNoRefOutParam(object p0, object p1) { return new ArgumentException(Strings.ElementInitializerMethodNoRefOutParam(p0, p1)); } /// /// ArgumentException with message like "Element initializer method must have at least 1 parameter" /// internal static Exception ElementInitializerMethodWithZeroArgs() { return new ArgumentException(Strings.ElementInitializerMethodWithZeroArgs); } /// /// ArgumentException with message like "Element initializer method must be an instance method" /// internal static Exception ElementInitializerMethodStatic() { return new ArgumentException(Strings.ElementInitializerMethodStatic); } /// /// ArgumentException with message like "Type '{0}' is not IEnumerable" /// internal static Exception TypeNotIEnumerable(object p0) { return new ArgumentException(Strings.TypeNotIEnumerable(p0)); } /// /// InvalidOperationException with message like "Type parameter is {0}. Expected a delegate." /// internal static Exception TypeParameterIsNotDelegate(object p0) { return new InvalidOperationException(Strings.TypeParameterIsNotDelegate(p0)); } /// /// InvalidOperationException with message like "Unexpected coalesce operator." /// internal static Exception UnexpectedCoalesceOperator() { return new InvalidOperationException(Strings.UnexpectedCoalesceOperator); } /// /// InvalidOperationException with message like "Cannot cast from type '{0}' to type '{1}" /// internal static Exception InvalidCast(object p0, object p1) { return new InvalidOperationException(Strings.InvalidCast(p0, p1)); } /// /// ArgumentException with message like "Unhandled binary: {0}" /// internal static Exception UnhandledBinary(object p0) { return new ArgumentException(Strings.UnhandledBinary(p0)); } /// /// ArgumentException with message like "Unhandled binding " /// internal static Exception UnhandledBinding() { return new ArgumentException(Strings.UnhandledBinding); } /// /// ArgumentException with message like "Unhandled Binding Type: {0}" /// internal static Exception UnhandledBindingType(object p0) { return new ArgumentException(Strings.UnhandledBindingType(p0)); } /// /// ArgumentException with message like "Unhandled convert: {0}" /// internal static Exception UnhandledConvert(object p0) { return new ArgumentException(Strings.UnhandledConvert(p0)); } /// /// ArgumentException with message like "Unhandled Expression Type: {0}" /// internal static Exception UnhandledExpressionType(object p0) { return new ArgumentException(Strings.UnhandledExpressionType(p0)); } /// /// ArgumentException with message like "Unhandled unary: {0}" /// internal static Exception UnhandledUnary(object p0) { return new ArgumentException(Strings.UnhandledUnary(p0)); } /// /// ArgumentException with message like "Unknown binding type" /// internal static Exception UnknownBindingType() { return new ArgumentException(Strings.UnknownBindingType); } /// /// ArgumentException with message like "The user-defined operator method '{1}' for operator '{0}' must have identical parameter and return types." /// internal static Exception UserDefinedOpMustHaveConsistentTypes(object p0, object p1) { return new ArgumentException(Strings.UserDefinedOpMustHaveConsistentTypes(p0, p1)); } /// /// ArgumentException with message like "The user-defined operator method '{1}' for operator '{0}' must return the same type as its parameter or a derived type." /// internal static Exception UserDefinedOpMustHaveValidReturnType(object p0, object p1) { return new ArgumentException(Strings.UserDefinedOpMustHaveValidReturnType(p0, p1)); } /// /// ArgumentException with message like "The user-defined operator method '{1}' for operator '{0}' must have associated boolean True and False operators." /// internal static Exception LogicalOperatorMustHaveBooleanOperators(object p0, object p1) { return new ArgumentException(Strings.LogicalOperatorMustHaveBooleanOperators(p0, p1)); } /// /// InvalidOperationException with message like "No method '{0}' exists on type '{1}'." /// internal static Exception MethodDoesNotExistOnType(object p0, object p1) { return new InvalidOperationException(Strings.MethodDoesNotExistOnType(p0, p1)); } /// /// InvalidOperationException with message like "No method '{0}' on type '{1}' is compatible with the supplied arguments." /// internal static Exception MethodWithArgsDoesNotExistOnType(object p0, object p1) { return new InvalidOperationException(Strings.MethodWithArgsDoesNotExistOnType(p0, p1)); } /// /// InvalidOperationException with message like "No generic method '{0}' on type '{1}' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic. " /// internal static Exception GenericMethodWithArgsDoesNotExistOnType(object p0, object p1) { return new InvalidOperationException(Strings.GenericMethodWithArgsDoesNotExistOnType(p0, p1)); } /// /// InvalidOperationException with message like "More than one method '{0}' on type '{1}' is compatible with the supplied arguments." /// internal static Exception MethodWithMoreThanOneMatch(object p0, object p1) { return new InvalidOperationException(Strings.MethodWithMoreThanOneMatch(p0, p1)); } /// /// InvalidOperationException with message like "More than one property '{0}' on type '{1}' is compatible with the supplied arguments." /// internal static Exception PropertyWithMoreThanOneMatch(object p0, object p1) { return new InvalidOperationException(Strings.PropertyWithMoreThanOneMatch(p0, p1)); } /// /// ArgumentException with message like "An incorrect number of type args were specified for the declaration of a Func type." /// internal static Exception IncorrectNumberOfTypeArgsForFunc() { return new ArgumentException(Strings.IncorrectNumberOfTypeArgsForFunc); } /// /// ArgumentException with message like "An incorrect number of type args were specified for the declaration of an Action type." /// internal static Exception IncorrectNumberOfTypeArgsForAction() { return new ArgumentException(Strings.IncorrectNumberOfTypeArgsForAction); } /// /// ArgumentException with message like "Argument type cannot be System.Void." /// internal static Exception ArgumentCannotBeOfTypeVoid() { return new ArgumentException(Strings.ArgumentCannotBeOfTypeVoid); } /// /// System.Reflection.AmbiguousMatchException with message like "More than one key matching '{0}' was found in the ExpandoObject." /// internal static Exception AmbiguousMatchInExpandoObject(object p0) { return new System.Reflection.AmbiguousMatchException(Strings.AmbiguousMatchInExpandoObject(p0)); } /// /// ArgumentException with message like "An element with the same key '{0}' already exists in the ExpandoObject." /// internal static Exception SameKeyExistsInExpando(object p0) { return new ArgumentException(Strings.SameKeyExistsInExpando(p0)); } /// /// System.Collections.Generic.KeyNotFoundException with message like "The specified key '{0}' does not exist in the ExpandoObject." /// internal static Exception KeyDoesNotExistInExpando(object p0) { return new System.Collections.Generic.KeyNotFoundException(Strings.KeyDoesNotExistInExpando(p0)); } /// /// InvalidOperationException with message like "No or Invalid rule produced" /// internal static Exception NoOrInvalidRuleProduced() { return new InvalidOperationException(Strings.NoOrInvalidRuleProduced); } /// /// ArgumentException with message like "First argument of delegate must be CallSite" /// internal static Exception FirstArgumentMustBeCallSite() { return new ArgumentException(Strings.FirstArgumentMustBeCallSite); } /// /// InvalidOperationException with message like "Bind cannot return null." /// internal static Exception BindingCannotBeNull() { return new InvalidOperationException(Strings.BindingCannotBeNull); } /// /// ArgumentException with message like "Invalid operation: '{0}'" /// internal static Exception InvalidOperation(object p0) { return new ArgumentException(Strings.InvalidOperation(p0)); } /// /// ArgumentOutOfRangeException with message like "{0} must be greater than or equal to {1}" /// internal static Exception OutOfRange(object p0, object p1) { return new ArgumentOutOfRangeException(Strings.OutOfRange(p0, p1)); } /// /// InvalidOperationException with message like "Queue empty." /// internal static Exception QueueEmpty() { return new InvalidOperationException(Strings.QueueEmpty); } /// /// InvalidOperationException with message like "Cannot redefine label '{0}' in an inner block." /// internal static Exception LabelTargetAlreadyDefined(object p0) { return new InvalidOperationException(Strings.LabelTargetAlreadyDefined(p0)); } /// /// InvalidOperationException with message like "Cannot jump to undefined label '{0}'." /// internal static Exception LabelTargetUndefined(object p0) { return new InvalidOperationException(Strings.LabelTargetUndefined(p0)); } /// /// InvalidOperationException with message like "Control cannot leave a finally block." /// internal static Exception ControlCannotLeaveFinally() { return new InvalidOperationException(Strings.ControlCannotLeaveFinally); } /// /// InvalidOperationException with message like "Control cannot leave a filter test." /// internal static Exception ControlCannotLeaveFilterTest() { return new InvalidOperationException(Strings.ControlCannotLeaveFilterTest); } /// /// InvalidOperationException with message like "Cannot jump to ambiguous label '{0}'." /// internal static Exception AmbiguousJump(object p0) { return new InvalidOperationException(Strings.AmbiguousJump(p0)); } /// /// InvalidOperationException with message like "Control cannot enter a try block." /// internal static Exception ControlCannotEnterTry() { return new InvalidOperationException(Strings.ControlCannotEnterTry); } /// /// InvalidOperationException with message like "Control cannot enter an expression--only statements can be jumped into." /// internal static Exception ControlCannotEnterExpression() { return new InvalidOperationException(Strings.ControlCannotEnterExpression); } /// /// InvalidOperationException with message like "Cannot jump to non-local label '{0}' with a value. Only jumps to labels defined in outer blocks can pass values." /// internal static Exception NonLocalJumpWithValue(object p0) { return new InvalidOperationException(Strings.NonLocalJumpWithValue(p0)); } /// /// InvalidOperationException with message like "Extension should have been reduced." /// internal static Exception ExtensionNotReduced() { return new InvalidOperationException(Strings.ExtensionNotReduced); } /// /// InvalidOperationException with message like "CompileToMethod cannot compile constant '{0}' because it is a non-trivial value, such as a live object. Instead, create an expression tree that can construct this value." /// internal static Exception CannotCompileConstant(object p0) { return new InvalidOperationException(Strings.CannotCompileConstant(p0)); } /// /// NotSupportedException with message like "Dynamic expressions are not supported by CompileToMethod. Instead, create an expression tree that uses System.Runtime.CompilerServices.CallSite." /// internal static Exception CannotCompileDynamic() { return new NotSupportedException(Strings.CannotCompileDynamic); } /// /// InvalidOperationException with message like "Invalid lvalue for assignment: {0}." /// internal static Exception InvalidLvalue(object p0) { return new InvalidOperationException(Strings.InvalidLvalue(p0)); } /// /// InvalidOperationException with message like "Invalid member type: {0}." /// internal static Exception InvalidMemberType(object p0) { return new InvalidOperationException(Strings.InvalidMemberType(p0)); } /// /// InvalidOperationException with message like "unknown lift type: '{0}'." /// internal static Exception UnknownLiftType(object p0) { return new InvalidOperationException(Strings.UnknownLiftType(p0)); } /// /// ArgumentException with message like "Invalid output directory." /// internal static Exception InvalidOutputDir() { return new ArgumentException(Strings.InvalidOutputDir); } /// /// ArgumentException with message like "Invalid assembly name or file extension." /// internal static Exception InvalidAsmNameOrExtension() { return new ArgumentException(Strings.InvalidAsmNameOrExtension); } /// /// NotSupportedException with message like "Collection is read-only." /// internal static Exception CollectionReadOnly() { return new NotSupportedException(Strings.CollectionReadOnly); } /// /// ArgumentException with message like "Cannot create instance of {0} because it contains generic parameters" /// internal static Exception IllegalNewGenericParams(object p0) { return new ArgumentException(Strings.IllegalNewGenericParams(p0)); } /// /// InvalidOperationException with message like "variable '{0}' of type '{1}' referenced from scope '{2}', but it is not defined" /// internal static Exception UndefinedVariable(object p0, object p1, object p2) { return new InvalidOperationException(Strings.UndefinedVariable(p0, p1, p2)); } /// /// InvalidOperationException with message like "Cannot close over byref parameter '{0}' referenced in lambda '{1}'" /// internal static Exception CannotCloseOverByRef(object p0, object p1) { return new InvalidOperationException(Strings.CannotCloseOverByRef(p0, p1)); } /// /// InvalidOperationException with message like "Unexpected VarArgs call to method '{0}'" /// internal static Exception UnexpectedVarArgsCall(object p0) { return new InvalidOperationException(Strings.UnexpectedVarArgsCall(p0)); } /// /// InvalidOperationException with message like "Rethrow statement is valid only inside a Catch block." /// internal static Exception RethrowRequiresCatch() { return new InvalidOperationException(Strings.RethrowRequiresCatch); } /// /// InvalidOperationException with message like "Try expression is not allowed inside a filter body." /// internal static Exception TryNotAllowedInFilter() { return new InvalidOperationException(Strings.TryNotAllowedInFilter); } /// /// InvalidOperationException with message like "When called from '{0}', rewriting a node of type '{1}' must return a non-null value of the same type. Alternatively, override '{2}' and change it to not visit children of this type." /// internal static Exception MustRewriteToSameNode(object p0, object p1, object p2) { return new InvalidOperationException(Strings.MustRewriteToSameNode(p0, p1, p2)); } /// /// InvalidOperationException with message like "Rewriting child expression from type '{0}' to type '{1}' is not allowed, because it would change the meaning of the operation. If this is intentional, override '{2}' and change it to allow this rewrite." /// internal static Exception MustRewriteChildToSameType(object p0, object p1, object p2) { return new InvalidOperationException(Strings.MustRewriteChildToSameType(p0, p1, p2)); } /// /// InvalidOperationException with message like "Rewritten expression calls operator method '{0}', but the original node had no operator method. If this is is intentional, override '{1}' and change it to allow this rewrite." /// internal static Exception MustRewriteWithoutMethod(object p0, object p1) { return new InvalidOperationException(Strings.MustRewriteWithoutMethod(p0, p1)); } /// /// NotSupportedException with message like "TryExpression is not supported as an argument to method '{0}' because it has an argument with by-ref type. Construct the tree so the TryExpression is not nested inside of this expression." /// internal static Exception TryNotSupportedForMethodsWithRefArgs(object p0) { return new NotSupportedException(Strings.TryNotSupportedForMethodsWithRefArgs(p0)); } /// /// NotSupportedException with message like "TryExpression is not supported as a child expression when accessing a member on type '{0}' because it is a value type. Construct the tree so the TryExpression is not nested inside of this expression." /// internal static Exception TryNotSupportedForValueTypeInstances(object p0) { return new NotSupportedException(Strings.TryNotSupportedForValueTypeInstances(p0)); } /// /// InvalidOperationException with message like "Collection was modified; enumeration operation may not execute." /// internal static Exception CollectionModifiedWhileEnumerating() { return new InvalidOperationException(Strings.CollectionModifiedWhileEnumerating); } /// /// InvalidOperationException with message like "Enumeration has either not started or has already finished." /// internal static Exception EnumerationIsDone() { return new InvalidOperationException(Strings.EnumerationIsDone); } /// /// InvalidOperationException with message like "Dynamic operations can only be performed in homogenous AppDomain." /// internal static Exception HomogenousAppDomainRequired() { return new InvalidOperationException(Strings.HomogenousAppDomainRequired); } /// /// ArgumentException with message like "Test value of type '{0}' cannot be used for the comparison method parameter of type '{1}'" /// internal static Exception TestValueTypeDoesNotMatchComparisonMethodParameter(object p0, object p1) { return new ArgumentException(Strings.TestValueTypeDoesNotMatchComparisonMethodParameter(p0, p1)); } /// /// ArgumentException with message like "Switch value of type '{0}' cannot be used for the comparison method parameter of type '{1}'" /// internal static Exception SwitchValueTypeDoesNotMatchComparisonMethodParameter(object p0, object p1) { return new ArgumentException(Strings.SwitchValueTypeDoesNotMatchComparisonMethodParameter(p0, p1)); } /// /// InvalidOperationException with message like "An IDynamicMetaObjectProvider {0} created an invalid DynamicMetaObject instance." /// internal static Exception InvalidMetaObjectCreated(object p0) { return new InvalidOperationException(Strings.InvalidMetaObjectCreated(p0)); } /// /// NotSupportedException with message like "DebugInfoGenerator created by CreatePdbGenerator can only be used with LambdaExpression.CompileToMethod." /// internal static Exception PdbGeneratorNeedsExpressionCompiler() { return new NotSupportedException(Strings.PdbGeneratorNeedsExpressionCompiler); } } // *** END GENERATED CODE *** #endregion }