[sgen] Reenable gc-altstack test
[mono.git] / mcs / class / dlr / Runtime / Microsoft.Scripting.Core / Utils / ExceptionFactory.Generated.cs
1 /* ****************************************************************************
2  *
3  * Copyright (c) Microsoft Corporation. 
4  *
5  * This source code is subject to terms and conditions of the Apache License, Version 2.0. A 
6  * copy of the license can be found in the License.html file at the root of this distribution. If 
7  * you cannot locate the  Apache License, Version 2.0, please send an email to 
8  * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
9  * by the terms of the Apache License, Version 2.0.
10  *
11  * You must not remove this notice, or any other, from this software.
12  *
13  *
14  * ***************************************************************************/
15
16 using System;
17
18 #if !FEATURE_CORE_DLR
19 namespace Microsoft.Scripting.Ast {
20 #else
21 namespace System.Linq.Expressions {
22 #endif
23
24     internal static partial class Strings {
25         private static string FormatString(string format, params object[] args) {
26             return string.Format(System.Globalization.CultureInfo.CurrentCulture, format, args);
27         }
28     }
29     
30     #region Generated Exception Factory
31
32     // *** BEGIN GENERATED CODE ***
33     // generated by function: gen_expr_factory_core from: generate_exception_factory.py
34
35     /// <summary>
36     ///    Strongly-typed and parameterized string factory.
37     /// </summary>
38
39     internal static partial class Strings {
40         /// <summary>
41         /// A string like  "Method precondition violated"
42         /// </summary>
43         internal static string MethodPreconditionViolated {
44             get {
45                 return "Method precondition violated";
46             }
47         }
48
49         /// <summary>
50         /// A string like  "Invalid argument value"
51         /// </summary>
52         internal static string InvalidArgumentValue {
53             get {
54                 return "Invalid argument value";
55             }
56         }
57
58         /// <summary>
59         /// A string like  "Non-empty collection required"
60         /// </summary>
61         internal static string NonEmptyCollectionRequired {
62             get {
63                 return "Non-empty collection required";
64             }
65         }
66
67         /// <summary>
68         /// A string like  "Argument count must be greater than number of named arguments."
69         /// </summary>
70         internal static string ArgCntMustBeGreaterThanNameCnt {
71             get {
72                 return "Argument count must be greater than number of named arguments.";
73             }
74         }
75
76         /// <summary>
77         /// A string like  "reducible nodes must override Expression.Reduce()"
78         /// </summary>
79         internal static string ReducibleMustOverrideReduce {
80             get {
81                 return "reducible nodes must override Expression.Reduce()";
82             }
83         }
84
85         /// <summary>
86         /// A string like  "node cannot reduce to itself or null"
87         /// </summary>
88         internal static string MustReduceToDifferent {
89             get {
90                 return "node cannot reduce to itself or null";
91             }
92         }
93
94         /// <summary>
95         /// A string like  "cannot assign from the reduced node type to the original node type"
96         /// </summary>
97         internal static string ReducedNotCompatible {
98             get {
99                 return "cannot assign from the reduced node type to the original node type";
100             }
101         }
102
103         /// <summary>
104         /// A string like  "Setter must have parameters."
105         /// </summary>
106         internal static string SetterHasNoParams {
107             get {
108                 return "Setter must have parameters.";
109             }
110         }
111
112         /// <summary>
113         /// A string like  "Property cannot have a managed pointer type."
114         /// </summary>
115         internal static string PropertyCannotHaveRefType {
116             get {
117                 return "Property cannot have a managed pointer type.";
118             }
119         }
120
121         /// <summary>
122         /// A string like  "Indexing parameters of getter and setter must match."
123         /// </summary>
124         internal static string IndexesOfSetGetMustMatch {
125             get {
126                 return "Indexing parameters of getter and setter must match.";
127             }
128         }
129
130         /// <summary>
131         /// A string like  "Accessor method should not have VarArgs."
132         /// </summary>
133         internal static string AccessorsCannotHaveVarArgs {
134             get {
135                 return "Accessor method should not have VarArgs.";
136             }
137         }
138
139         /// <summary>
140         /// A string like  "Accessor indexes cannot be passed ByRef."
141         /// </summary>
142         internal static string AccessorsCannotHaveByRefArgs {
143             get {
144                 return "Accessor indexes cannot be passed ByRef.";
145             }
146         }
147
148         /// <summary>
149         /// A string like  "Bounds count cannot be less than 1"
150         /// </summary>
151         internal static string BoundsCannotBeLessThanOne {
152             get {
153                 return "Bounds count cannot be less than 1";
154             }
155         }
156
157         /// <summary>
158         /// A string like  "type must not be ByRef"
159         /// </summary>
160         internal static string TypeMustNotBeByRef {
161             get {
162                 return "type must not be ByRef";
163             }
164         }
165
166         /// <summary>
167         /// A string like  "Type doesn't have constructor with a given signature"
168         /// </summary>
169         internal static string TypeDoesNotHaveConstructorForTheSignature {
170             get {
171                 return "Type doesn't have constructor with a given signature";
172             }
173         }
174
175         /// <summary>
176         /// A string like  "Count must be non-negative."
177         /// </summary>
178         internal static string CountCannotBeNegative {
179             get {
180                 return "Count must be non-negative.";
181             }
182         }
183
184         /// <summary>
185         /// A string like  "arrayType must be an array type"
186         /// </summary>
187         internal static string ArrayTypeMustBeArray {
188             get {
189                 return "arrayType must be an array type";
190             }
191         }
192
193         /// <summary>
194         /// A string like  "Setter should have void type."
195         /// </summary>
196         internal static string SetterMustBeVoid {
197             get {
198                 return "Setter should have void type.";
199             }
200         }
201
202         /// <summary>
203         /// A string like  "Property type must match the value type of setter"
204         /// </summary>
205         internal static string PropertyTyepMustMatchSetter {
206             get {
207                 return "Property type must match the value type of setter";
208             }
209         }
210
211         /// <summary>
212         /// A string like  "Both accessors must be static."
213         /// </summary>
214         internal static string BothAccessorsMustBeStatic {
215             get {
216                 return "Both accessors must be static.";
217             }
218         }
219
220         /// <summary>
221         /// A string like  "Static field requires null instance, non-static field requires non-null instance."
222         /// </summary>
223         internal static string OnlyStaticFieldsHaveNullInstance {
224             get {
225                 return "Static field requires null instance, non-static field requires non-null instance.";
226             }
227         }
228
229         /// <summary>
230         /// A string like  "Static property requires null instance, non-static property requires non-null instance."
231         /// </summary>
232         internal static string OnlyStaticPropertiesHaveNullInstance {
233             get {
234                 return "Static property requires null instance, non-static property requires non-null instance.";
235             }
236         }
237
238         /// <summary>
239         /// A string like  "Static method requires null instance, non-static method requires non-null instance."
240         /// </summary>
241         internal static string OnlyStaticMethodsHaveNullInstance {
242             get {
243                 return "Static method requires null instance, non-static method requires non-null instance.";
244             }
245         }
246
247         /// <summary>
248         /// A string like  "Property cannot have a void type."
249         /// </summary>
250         internal static string PropertyTypeCannotBeVoid {
251             get {
252                 return "Property cannot have a void type.";
253             }
254         }
255
256         /// <summary>
257         /// A string like  "Can only unbox from an object or interface type to a value type."
258         /// </summary>
259         internal static string InvalidUnboxType {
260             get {
261                 return "Can only unbox from an object or interface type to a value type.";
262             }
263         }
264
265         /// <summary>
266         /// A string like  "Expression must be readable"
267         /// </summary>
268         internal static string ExpressionMustBeReadable {
269             get {
270                 return "Expression must be readable";
271             }
272         }
273
274         /// <summary>
275         /// A string like  "Expression must be writeable"
276         /// </summary>
277         internal static string ExpressionMustBeWriteable {
278             get {
279                 return "Expression must be writeable";
280             }
281         }
282
283         /// <summary>
284         /// A string like  "Argument must not have a value type."
285         /// </summary>
286         internal static string ArgumentMustNotHaveValueType {
287             get {
288                 return "Argument must not have a value type.";
289             }
290         }
291
292         /// <summary>
293         /// A string like  "must be reducible node"
294         /// </summary>
295         internal static string MustBeReducible {
296             get {
297                 return "must be reducible node";
298             }
299         }
300
301         /// <summary>
302         /// A string like  "All test values must have the same type."
303         /// </summary>
304         internal static string AllTestValuesMustHaveSameType {
305             get {
306                 return "All test values must have the same type.";
307             }
308         }
309
310         /// <summary>
311         /// A string like  "All case bodies and the default body must have the same type."
312         /// </summary>
313         internal static string AllCaseBodiesMustHaveSameType {
314             get {
315                 return "All case bodies and the default body must have the same type.";
316             }
317         }
318
319         /// <summary>
320         /// A string like  "Default body must be supplied if case bodies are not System.Void."
321         /// </summary>
322         internal static string DefaultBodyMustBeSupplied {
323             get {
324                 return "Default body must be supplied if case bodies are not System.Void.";
325             }
326         }
327
328         /// <summary>
329         /// A string like  "MethodBuilder does not have a valid TypeBuilder"
330         /// </summary>
331         internal static string MethodBuilderDoesNotHaveTypeBuilder {
332             get {
333                 return "MethodBuilder does not have a valid TypeBuilder";
334             }
335         }
336
337         /// <summary>
338         /// A string like  "Type must be derived from System.Delegate"
339         /// </summary>
340         internal static string TypeMustBeDerivedFromSystemDelegate {
341             get {
342                 return "Type must be derived from System.Delegate";
343             }
344         }
345
346         /// <summary>
347         /// A string like  "Argument type cannot be void"
348         /// </summary>
349         internal static string ArgumentTypeCannotBeVoid {
350             get {
351                 return "Argument type cannot be void";
352             }
353         }
354
355         /// <summary>
356         /// A string like  "Label type must be System.Void if an expression is not supplied"
357         /// </summary>
358         internal static string LabelMustBeVoidOrHaveExpression {
359             get {
360                 return "Label type must be System.Void if an expression is not supplied";
361             }
362         }
363
364         /// <summary>
365         /// A string like  "Type must be System.Void for this label argument"
366         /// </summary>
367         internal static string LabelTypeMustBeVoid {
368             get {
369                 return "Type must be System.Void for this label argument";
370             }
371         }
372
373         /// <summary>
374         /// A string like  "Quoted expression must be a lambda"
375         /// </summary>
376         internal static string QuotedExpressionMustBeLambda {
377             get {
378                 return "Quoted expression must be a lambda";
379             }
380         }
381
382         /// <summary>
383         /// A string like  "Variable '{0}' uses unsupported type '{1}'. Reference types are not supported for variables."
384         /// </summary>
385         internal static string VariableMustNotBeByRef(object p0, object p1) {
386             return FormatString("Variable '{0}' uses unsupported type '{1}'. Reference types are not supported for variables.", p0, p1);
387         }
388
389         /// <summary>
390         /// A string like  "Found duplicate parameter '{0}'. Each ParameterExpression in the list must be a unique object."
391         /// </summary>
392         internal static string DuplicateVariable(object p0) {
393             return FormatString("Found duplicate parameter '{0}'. Each ParameterExpression in the list must be a unique object.", p0);
394         }
395
396         /// <summary>
397         /// A string like  "Start and End must be well ordered"
398         /// </summary>
399         internal static string StartEndMustBeOrdered {
400             get {
401                 return "Start and End must be well ordered";
402             }
403         }
404
405         /// <summary>
406         /// A string like  "fault cannot be used with catch or finally clauses"
407         /// </summary>
408         internal static string FaultCannotHaveCatchOrFinally {
409             get {
410                 return "fault cannot be used with catch or finally clauses";
411             }
412         }
413
414         /// <summary>
415         /// A string like  "try must have at least one catch, finally, or fault clause"
416         /// </summary>
417         internal static string TryMustHaveCatchFinallyOrFault {
418             get {
419                 return "try must have at least one catch, finally, or fault clause";
420             }
421         }
422
423         /// <summary>
424         /// A string like  "Body of catch must have the same type as body of try."
425         /// </summary>
426         internal static string BodyOfCatchMustHaveSameTypeAsBodyOfTry {
427             get {
428                 return "Body of catch must have the same type as body of try.";
429             }
430         }
431
432         /// <summary>
433         /// A string like  "Extension node must override the property {0}."
434         /// </summary>
435         internal static string ExtensionNodeMustOverrideProperty(object p0) {
436             return FormatString("Extension node must override the property {0}.", p0);
437         }
438
439         /// <summary>
440         /// A string like  "User-defined operator method '{0}' must be static."
441         /// </summary>
442         internal static string UserDefinedOperatorMustBeStatic(object p0) {
443             return FormatString("User-defined operator method '{0}' must be static.", p0);
444         }
445
446         /// <summary>
447         /// A string like  "User-defined operator method '{0}' must not be void."
448         /// </summary>
449         internal static string UserDefinedOperatorMustNotBeVoid(object p0) {
450             return FormatString("User-defined operator method '{0}' must not be void.", p0);
451         }
452
453         /// <summary>
454         /// A string like  "No coercion operator is defined between types '{0}' and '{1}'."
455         /// </summary>
456         internal static string CoercionOperatorNotDefined(object p0, object p1) {
457             return FormatString("No coercion operator is defined between types '{0}' and '{1}'.", p0, p1);
458         }
459
460         /// <summary>
461         /// 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."
462         /// </summary>
463         internal static string DynamicBinderResultNotAssignable(object p0, object p1, object p2) {
464             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);
465         }
466
467         /// <summary>
468         /// 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."
469         /// </summary>
470         internal static string DynamicObjectResultNotAssignable(object p0, object p1, object p2, object p3) {
471             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);
472         }
473
474         /// <summary>
475         /// 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."
476         /// </summary>
477         internal static string DynamicBindingNeedsRestrictions(object p0, object p1) {
478             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);
479         }
480
481         /// <summary>
482         /// A string like  "The result type '{0}' of the binder '{1}' is not compatible with the result type '{2}' expected by the call site."
483         /// </summary>
484         internal static string BinderNotCompatibleWithCallSite(object p0, object p1, object p2) {
485             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);
486         }
487
488         /// <summary>
489         /// A string like  "The unary operator {0} is not defined for the type '{1}'."
490         /// </summary>
491         internal static string UnaryOperatorNotDefined(object p0, object p1) {
492             return FormatString("The unary operator {0} is not defined for the type '{1}'.", p0, p1);
493         }
494
495         /// <summary>
496         /// A string like  "The binary operator {0} is not defined for the types '{1}' and '{2}'."
497         /// </summary>
498         internal static string BinaryOperatorNotDefined(object p0, object p1, object p2) {
499             return FormatString("The binary operator {0} is not defined for the types '{1}' and '{2}'.", p0, p1, p2);
500         }
501
502         /// <summary>
503         /// A string like  "Reference equality is not defined for the types '{0}' and '{1}'."
504         /// </summary>
505         internal static string ReferenceEqualityNotDefined(object p0, object p1) {
506             return FormatString("Reference equality is not defined for the types '{0}' and '{1}'.", p0, p1);
507         }
508
509         /// <summary>
510         /// A string like  "The operands for operator '{0}' do not match the parameters of method '{1}'."
511         /// </summary>
512         internal static string OperandTypesDoNotMatchParameters(object p0, object p1) {
513             return FormatString("The operands for operator '{0}' do not match the parameters of method '{1}'.", p0, p1);
514         }
515
516         /// <summary>
517         /// A string like  "The return type of overload method for operator '{0}' does not match the parameter type of conversion method '{1}'."
518         /// </summary>
519         internal static string OverloadOperatorTypeDoesNotMatchConversionType(object p0, object p1) {
520             return FormatString("The return type of overload method for operator '{0}' does not match the parameter type of conversion method '{1}'.", p0, p1);
521         }
522
523         /// <summary>
524         /// A string like  "Conversion is not supported for arithmetic types without operator overloading."
525         /// </summary>
526         internal static string ConversionIsNotSupportedForArithmeticTypes {
527             get {
528                 return "Conversion is not supported for arithmetic types without operator overloading.";
529             }
530         }
531
532         /// <summary>
533         /// A string like  "Argument must be array"
534         /// </summary>
535         internal static string ArgumentMustBeArray {
536             get {
537                 return "Argument must be array";
538             }
539         }
540
541         /// <summary>
542         /// A string like  "Argument must be boolean"
543         /// </summary>
544         internal static string ArgumentMustBeBoolean {
545             get {
546                 return "Argument must be boolean";
547             }
548         }
549
550         /// <summary>
551         /// A string like  "The user-defined equality method '{0}' must return a boolean value."
552         /// </summary>
553         internal static string EqualityMustReturnBoolean(object p0) {
554             return FormatString("The user-defined equality method '{0}' must return a boolean value.", p0);
555         }
556
557         /// <summary>
558         /// A string like  "Argument must be either a FieldInfo or PropertyInfo"
559         /// </summary>
560         internal static string ArgumentMustBeFieldInfoOrPropertInfo {
561             get {
562                 return "Argument must be either a FieldInfo or PropertyInfo";
563             }
564         }
565
566         /// <summary>
567         /// A string like  "Argument must be either a FieldInfo, PropertyInfo or MethodInfo"
568         /// </summary>
569         internal static string ArgumentMustBeFieldInfoOrPropertInfoOrMethod {
570             get {
571                 return "Argument must be either a FieldInfo, PropertyInfo or MethodInfo";
572             }
573         }
574
575         /// <summary>
576         /// A string like  "Argument must be an instance member"
577         /// </summary>
578         internal static string ArgumentMustBeInstanceMember {
579             get {
580                 return "Argument must be an instance member";
581             }
582         }
583
584         /// <summary>
585         /// A string like  "Argument must be of an integer type"
586         /// </summary>
587         internal static string ArgumentMustBeInteger {
588             get {
589                 return "Argument must be of an integer type";
590             }
591         }
592
593         /// <summary>
594         /// A string like  "Argument for array index must be of type Int32"
595         /// </summary>
596         internal static string ArgumentMustBeArrayIndexType {
597             get {
598                 return "Argument for array index must be of type Int32";
599             }
600         }
601
602         /// <summary>
603         /// A string like  "Argument must be single dimensional array type"
604         /// </summary>
605         internal static string ArgumentMustBeSingleDimensionalArrayType {
606             get {
607                 return "Argument must be single dimensional array type";
608             }
609         }
610
611         /// <summary>
612         /// A string like  "Argument types do not match"
613         /// </summary>
614         internal static string ArgumentTypesMustMatch {
615             get {
616                 return "Argument types do not match";
617             }
618         }
619
620         /// <summary>
621         /// A string like  "Cannot auto initialize elements of value type through property '{0}', use assignment instead"
622         /// </summary>
623         internal static string CannotAutoInitializeValueTypeElementThroughProperty(object p0) {
624             return FormatString("Cannot auto initialize elements of value type through property '{0}', use assignment instead", p0);
625         }
626
627         /// <summary>
628         /// A string like  "Cannot auto initialize members of value type through property '{0}', use assignment instead"
629         /// </summary>
630         internal static string CannotAutoInitializeValueTypeMemberThroughProperty(object p0) {
631             return FormatString("Cannot auto initialize members of value type through property '{0}', use assignment instead", p0);
632         }
633
634         /// <summary>
635         /// A string like  "The type used in TypeAs Expression must be of reference or nullable type, {0} is neither"
636         /// </summary>
637         internal static string IncorrectTypeForTypeAs(object p0) {
638             return FormatString("The type used in TypeAs Expression must be of reference or nullable type, {0} is neither", p0);
639         }
640
641         /// <summary>
642         /// A string like  "Coalesce used with type that cannot be null"
643         /// </summary>
644         internal static string CoalesceUsedOnNonNullType {
645             get {
646                 return "Coalesce used with type that cannot be null";
647             }
648         }
649
650         /// <summary>
651         /// A string like  "An expression of type '{0}' cannot be used to initialize an array of type '{1}'"
652         /// </summary>
653         internal static string ExpressionTypeCannotInitializeArrayType(object p0, object p1) {
654             return FormatString("An expression of type '{0}' cannot be used to initialize an array of type '{1}'", p0, p1);
655         }
656
657         /// <summary>
658         /// A string like  "Expression of type '{0}' cannot be used for constructor parameter of type '{1}'"
659         /// </summary>
660         internal static string ExpressionTypeDoesNotMatchConstructorParameter(object p0, object p1) {
661             return FormatString("Expression of type '{0}' cannot be used for constructor parameter of type '{1}'", p0, p1);
662         }
663
664         /// <summary>
665         /// A string like  " Argument type '{0}' does not match the corresponding member type '{1}'"
666         /// </summary>
667         internal static string ArgumentTypeDoesNotMatchMember(object p0, object p1) {
668             return FormatString(" Argument type '{0}' does not match the corresponding member type '{1}'", p0, p1);
669         }
670
671         /// <summary>
672         /// A string like  " The member '{0}' is not declared on type '{1}' being created"
673         /// </summary>
674         internal static string ArgumentMemberNotDeclOnType(object p0, object p1) {
675             return FormatString(" The member '{0}' is not declared on type '{1}' being created", p0, p1);
676         }
677
678         /// <summary>
679         /// A string like  "Expression of type '{0}' cannot be used for parameter of type '{1}' of method '{2}'"
680         /// </summary>
681         internal static string ExpressionTypeDoesNotMatchMethodParameter(object p0, object p1, object p2) {
682             return FormatString("Expression of type '{0}' cannot be used for parameter of type '{1}' of method '{2}'", p0, p1, p2);
683         }
684
685         /// <summary>
686         /// A string like  "Expression of type '{0}' cannot be used for parameter of type '{1}'"
687         /// </summary>
688         internal static string ExpressionTypeDoesNotMatchParameter(object p0, object p1) {
689             return FormatString("Expression of type '{0}' cannot be used for parameter of type '{1}'", p0, p1);
690         }
691
692         /// <summary>
693         /// A string like  "Expression of type '{0}' cannot be used for return type '{1}'"
694         /// </summary>
695         internal static string ExpressionTypeDoesNotMatchReturn(object p0, object p1) {
696             return FormatString("Expression of type '{0}' cannot be used for return type '{1}'", p0, p1);
697         }
698
699         /// <summary>
700         /// A string like  "Expression of type '{0}' cannot be used for assignment to type '{1}'"
701         /// </summary>
702         internal static string ExpressionTypeDoesNotMatchAssignment(object p0, object p1) {
703             return FormatString("Expression of type '{0}' cannot be used for assignment to type '{1}'", p0, p1);
704         }
705
706         /// <summary>
707         /// A string like  "Expression of type '{0}' cannot be used for label of type '{1}'"
708         /// </summary>
709         internal static string ExpressionTypeDoesNotMatchLabel(object p0, object p1) {
710             return FormatString("Expression of type '{0}' cannot be used for label of type '{1}'", p0, p1);
711         }
712
713         /// <summary>
714         /// A string like  "Expression of type '{0}' cannot be invoked"
715         /// </summary>
716         internal static string ExpressionTypeNotInvocable(object p0) {
717             return FormatString("Expression of type '{0}' cannot be invoked", p0);
718         }
719
720         /// <summary>
721         /// A string like  "Field '{0}' is not defined for type '{1}'"
722         /// </summary>
723         internal static string FieldNotDefinedForType(object p0, object p1) {
724             return FormatString("Field '{0}' is not defined for type '{1}'", p0, p1);
725         }
726
727         /// <summary>
728         /// A string like  "Instance field '{0}' is not defined for type '{1}'"
729         /// </summary>
730         internal static string InstanceFieldNotDefinedForType(object p0, object p1) {
731             return FormatString("Instance field '{0}' is not defined for type '{1}'", p0, p1);
732         }
733
734         /// <summary>
735         /// A string like  "Field '{0}.{1}' is not defined for type '{2}'"
736         /// </summary>
737         internal static string FieldInfoNotDefinedForType(object p0, object p1, object p2) {
738             return FormatString("Field '{0}.{1}' is not defined for type '{2}'", p0, p1, p2);
739         }
740
741         /// <summary>
742         /// A string like  "Incorrect number of indexes"
743         /// </summary>
744         internal static string IncorrectNumberOfIndexes {
745             get {
746                 return "Incorrect number of indexes";
747             }
748         }
749
750         /// <summary>
751         /// A string like  "Incorrect number of arguments supplied for lambda invocation"
752         /// </summary>
753         internal static string IncorrectNumberOfLambdaArguments {
754             get {
755                 return "Incorrect number of arguments supplied for lambda invocation";
756             }
757         }
758
759         /// <summary>
760         /// A string like  "Incorrect number of parameters supplied for lambda declaration"
761         /// </summary>
762         internal static string IncorrectNumberOfLambdaDeclarationParameters {
763             get {
764                 return "Incorrect number of parameters supplied for lambda declaration";
765             }
766         }
767
768         /// <summary>
769         /// A string like  "Incorrect number of arguments supplied for call to method '{0}'"
770         /// </summary>
771         internal static string IncorrectNumberOfMethodCallArguments(object p0) {
772             return FormatString("Incorrect number of arguments supplied for call to method '{0}'", p0);
773         }
774
775         /// <summary>
776         /// A string like  "Incorrect number of arguments for constructor"
777         /// </summary>
778         internal static string IncorrectNumberOfConstructorArguments {
779             get {
780                 return "Incorrect number of arguments for constructor";
781             }
782         }
783
784         /// <summary>
785         /// A string like  " Incorrect number of members for constructor"
786         /// </summary>
787         internal static string IncorrectNumberOfMembersForGivenConstructor {
788             get {
789                 return " Incorrect number of members for constructor";
790             }
791         }
792
793         /// <summary>
794         /// A string like  "Incorrect number of arguments for the given members "
795         /// </summary>
796         internal static string IncorrectNumberOfArgumentsForMembers {
797             get {
798                 return "Incorrect number of arguments for the given members ";
799             }
800         }
801
802         /// <summary>
803         /// A string like  "Lambda type parameter must be derived from System.Delegate"
804         /// </summary>
805         internal static string LambdaTypeMustBeDerivedFromSystemDelegate {
806             get {
807                 return "Lambda type parameter must be derived from System.Delegate";
808             }
809         }
810
811         /// <summary>
812         /// A string like  "Member '{0}' not field or property"
813         /// </summary>
814         internal static string MemberNotFieldOrProperty(object p0) {
815             return FormatString("Member '{0}' not field or property", p0);
816         }
817
818         /// <summary>
819         /// A string like  "Method {0} contains generic parameters"
820         /// </summary>
821         internal static string MethodContainsGenericParameters(object p0) {
822             return FormatString("Method {0} contains generic parameters", p0);
823         }
824
825         /// <summary>
826         /// A string like  "Method {0} is a generic method definition"
827         /// </summary>
828         internal static string MethodIsGeneric(object p0) {
829             return FormatString("Method {0} is a generic method definition", p0);
830         }
831
832         /// <summary>
833         /// A string like  "The method '{0}.{1}' is not a property accessor"
834         /// </summary>
835         internal static string MethodNotPropertyAccessor(object p0, object p1) {
836             return FormatString("The method '{0}.{1}' is not a property accessor", p0, p1);
837         }
838
839         /// <summary>
840         /// A string like  "The property '{0}' has no 'get' accessor"
841         /// </summary>
842         internal static string PropertyDoesNotHaveGetter(object p0) {
843             return FormatString("The property '{0}' has no 'get' accessor", p0);
844         }
845
846         /// <summary>
847         /// A string like  "The property '{0}' has no 'set' accessor"
848         /// </summary>
849         internal static string PropertyDoesNotHaveSetter(object p0) {
850             return FormatString("The property '{0}' has no 'set' accessor", p0);
851         }
852
853         /// <summary>
854         /// A string like  "The property '{0}' has no 'get' or 'set' accessors"
855         /// </summary>
856         internal static string PropertyDoesNotHaveAccessor(object p0) {
857             return FormatString("The property '{0}' has no 'get' or 'set' accessors", p0);
858         }
859
860         /// <summary>
861         /// A string like  "'{0}' is not a member of type '{1}'"
862         /// </summary>
863         internal static string NotAMemberOfType(object p0, object p1) {
864             return FormatString("'{0}' is not a member of type '{1}'", p0, p1);
865         }
866
867         /// <summary>
868         /// A string like  "The operator '{0}' is not implemented for type '{1}'"
869         /// </summary>
870         internal static string OperatorNotImplementedForType(object p0, object p1) {
871             return FormatString("The operator '{0}' is not implemented for type '{1}'", p0, p1);
872         }
873
874         /// <summary>
875         /// A string like  "ParameterExpression of type '{0}' cannot be used for delegate parameter of type '{1}'"
876         /// </summary>
877         internal static string ParameterExpressionNotValidAsDelegate(object p0, object p1) {
878             return FormatString("ParameterExpression of type '{0}' cannot be used for delegate parameter of type '{1}'", p0, p1);
879         }
880
881         /// <summary>
882         /// A string like  "Property '{0}' is not defined for type '{1}'"
883         /// </summary>
884         internal static string PropertyNotDefinedForType(object p0, object p1) {
885             return FormatString("Property '{0}' is not defined for type '{1}'", p0, p1);
886         }
887
888         /// <summary>
889         /// A string like  "Instance property '{0}' is not defined for type '{1}'"
890         /// </summary>
891         internal static string InstancePropertyNotDefinedForType(object p0, object p1) {
892             return FormatString("Instance property '{0}' is not defined for type '{1}'", p0, p1);
893         }
894
895         /// <summary>
896         /// A string like  "Instance property '{0}' that takes no argument is not defined for type '{1}'"
897         /// </summary>
898         internal static string InstancePropertyWithoutParameterNotDefinedForType(object p0, object p1) {
899             return FormatString("Instance property '{0}' that takes no argument is not defined for type '{1}'", p0, p1);
900         }
901
902         /// <summary>
903         /// A string like  "Instance property '{0}{1}' is not defined for type '{2}'"
904         /// </summary>
905         internal static string InstancePropertyWithSpecifiedParametersNotDefinedForType(object p0, object p1, object p2) {
906             return FormatString("Instance property '{0}{1}' is not defined for type '{2}'", p0, p1, p2);
907         }
908
909         /// <summary>
910         /// A string like  "Method '{0}' declared on type '{1}' cannot be called with instance of type '{2}'"
911         /// </summary>
912         internal static string InstanceAndMethodTypeMismatch(object p0, object p1, object p2) {
913             return FormatString("Method '{0}' declared on type '{1}' cannot be called with instance of type '{2}'", p0, p1, p2);
914         }
915
916         /// <summary>
917         /// A string like  "Type {0} contains generic parameters"
918         /// </summary>
919         internal static string TypeContainsGenericParameters(object p0) {
920             return FormatString("Type {0} contains generic parameters", p0);
921         }
922
923         /// <summary>
924         /// A string like  "Type {0} is a generic type definition"
925         /// </summary>
926         internal static string TypeIsGeneric(object p0) {
927             return FormatString("Type {0} is a generic type definition", p0);
928         }
929
930         /// <summary>
931         /// A string like  "Type '{0}' does not have a default constructor"
932         /// </summary>
933         internal static string TypeMissingDefaultConstructor(object p0) {
934             return FormatString("Type '{0}' does not have a default constructor", p0);
935         }
936
937         /// <summary>
938         /// A string like  "List initializers must contain at least one initializer"
939         /// </summary>
940         internal static string ListInitializerWithZeroMembers {
941             get {
942                 return "List initializers must contain at least one initializer";
943             }
944         }
945
946         /// <summary>
947         /// A string like  "Element initializer method must be named 'Add'"
948         /// </summary>
949         internal static string ElementInitializerMethodNotAdd {
950             get {
951                 return "Element initializer method must be named 'Add'";
952             }
953         }
954
955         /// <summary>
956         /// A string like  "Parameter '{0}' of element initializer method '{1}' must not be a pass by reference parameter"
957         /// </summary>
958         internal static string ElementInitializerMethodNoRefOutParam(object p0, object p1) {
959             return FormatString("Parameter '{0}' of element initializer method '{1}' must not be a pass by reference parameter", p0, p1);
960         }
961
962         /// <summary>
963         /// A string like  "Element initializer method must have at least 1 parameter"
964         /// </summary>
965         internal static string ElementInitializerMethodWithZeroArgs {
966             get {
967                 return "Element initializer method must have at least 1 parameter";
968             }
969         }
970
971         /// <summary>
972         /// A string like  "Element initializer method must be an instance method"
973         /// </summary>
974         internal static string ElementInitializerMethodStatic {
975             get {
976                 return "Element initializer method must be an instance method";
977             }
978         }
979
980         /// <summary>
981         /// A string like  "Type '{0}' is not IEnumerable"
982         /// </summary>
983         internal static string TypeNotIEnumerable(object p0) {
984             return FormatString("Type '{0}' is not IEnumerable", p0);
985         }
986
987         /// <summary>
988         /// A string like  "Type parameter is {0}. Expected a delegate."
989         /// </summary>
990         internal static string TypeParameterIsNotDelegate(object p0) {
991             return FormatString("Type parameter is {0}. Expected a delegate.", p0);
992         }
993
994         /// <summary>
995         /// A string like  "Unexpected coalesce operator."
996         /// </summary>
997         internal static string UnexpectedCoalesceOperator {
998             get {
999                 return "Unexpected coalesce operator.";
1000             }
1001         }
1002
1003         /// <summary>
1004         /// A string like  "Cannot cast from type '{0}' to type '{1}"
1005         /// </summary>
1006         internal static string InvalidCast(object p0, object p1) {
1007             return FormatString("Cannot cast from type '{0}' to type '{1}", p0, p1);
1008         }
1009
1010         /// <summary>
1011         /// A string like  "Unhandled binary: {0}"
1012         /// </summary>
1013         internal static string UnhandledBinary(object p0) {
1014             return FormatString("Unhandled binary: {0}", p0);
1015         }
1016
1017         /// <summary>
1018         /// A string like  "Unhandled binding "
1019         /// </summary>
1020         internal static string UnhandledBinding {
1021             get {
1022                 return "Unhandled binding ";
1023             }
1024         }
1025
1026         /// <summary>
1027         /// A string like  "Unhandled Binding Type: {0}"
1028         /// </summary>
1029         internal static string UnhandledBindingType(object p0) {
1030             return FormatString("Unhandled Binding Type: {0}", p0);
1031         }
1032
1033         /// <summary>
1034         /// A string like  "Unhandled convert: {0}"
1035         /// </summary>
1036         internal static string UnhandledConvert(object p0) {
1037             return FormatString("Unhandled convert: {0}", p0);
1038         }
1039
1040         /// <summary>
1041         /// A string like  "Unhandled Expression Type: {0}"
1042         /// </summary>
1043         internal static string UnhandledExpressionType(object p0) {
1044             return FormatString("Unhandled Expression Type: {0}", p0);
1045         }
1046
1047         /// <summary>
1048         /// A string like  "Unhandled unary: {0}"
1049         /// </summary>
1050         internal static string UnhandledUnary(object p0) {
1051             return FormatString("Unhandled unary: {0}", p0);
1052         }
1053
1054         /// <summary>
1055         /// A string like  "Unknown binding type"
1056         /// </summary>
1057         internal static string UnknownBindingType {
1058             get {
1059                 return "Unknown binding type";
1060             }
1061         }
1062
1063         /// <summary>
1064         /// A string like  "The user-defined operator method '{1}' for operator '{0}' must have identical parameter and return types."
1065         /// </summary>
1066         internal static string UserDefinedOpMustHaveConsistentTypes(object p0, object p1) {
1067             return FormatString("The user-defined operator method '{1}' for operator '{0}' must have identical parameter and return types.", p0, p1);
1068         }
1069
1070         /// <summary>
1071         /// A string like  "The user-defined operator method '{1}' for operator '{0}' must return the same type as its parameter or a derived type."
1072         /// </summary>
1073         internal static string UserDefinedOpMustHaveValidReturnType(object p0, object p1) {
1074             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);
1075         }
1076
1077         /// <summary>
1078         /// A string like  "The user-defined operator method '{1}' for operator '{0}' must have associated boolean True and False operators."
1079         /// </summary>
1080         internal static string LogicalOperatorMustHaveBooleanOperators(object p0, object p1) {
1081             return FormatString("The user-defined operator method '{1}' for operator '{0}' must have associated boolean True and False operators.", p0, p1);
1082         }
1083
1084         /// <summary>
1085         /// A string like  "No method '{0}' exists on type '{1}'."
1086         /// </summary>
1087         internal static string MethodDoesNotExistOnType(object p0, object p1) {
1088             return FormatString("No method '{0}' exists on type '{1}'.", p0, p1);
1089         }
1090
1091         /// <summary>
1092         /// A string like  "No method '{0}' on type '{1}' is compatible with the supplied arguments."
1093         /// </summary>
1094         internal static string MethodWithArgsDoesNotExistOnType(object p0, object p1) {
1095             return FormatString("No method '{0}' on type '{1}' is compatible with the supplied arguments.", p0, p1);
1096         }
1097
1098         /// <summary>
1099         /// 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. "
1100         /// </summary>
1101         internal static string GenericMethodWithArgsDoesNotExistOnType(object p0, object p1) {
1102             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);
1103         }
1104
1105         /// <summary>
1106         /// A string like  "More than one method '{0}' on type '{1}' is compatible with the supplied arguments."
1107         /// </summary>
1108         internal static string MethodWithMoreThanOneMatch(object p0, object p1) {
1109             return FormatString("More than one method '{0}' on type '{1}' is compatible with the supplied arguments.", p0, p1);
1110         }
1111
1112         /// <summary>
1113         /// A string like  "More than one property '{0}' on type '{1}' is compatible with the supplied arguments."
1114         /// </summary>
1115         internal static string PropertyWithMoreThanOneMatch(object p0, object p1) {
1116             return FormatString("More than one property '{0}' on type '{1}' is compatible with the supplied arguments.", p0, p1);
1117         }
1118
1119         /// <summary>
1120         /// A string like  "An incorrect number of type args were specified for the declaration of a Func type."
1121         /// </summary>
1122         internal static string IncorrectNumberOfTypeArgsForFunc {
1123             get {
1124                 return "An incorrect number of type args were specified for the declaration of a Func type.";
1125             }
1126         }
1127
1128         /// <summary>
1129         /// A string like  "An incorrect number of type args were specified for the declaration of an Action type."
1130         /// </summary>
1131         internal static string IncorrectNumberOfTypeArgsForAction {
1132             get {
1133                 return "An incorrect number of type args were specified for the declaration of an Action type.";
1134             }
1135         }
1136
1137         /// <summary>
1138         /// A string like  "Argument type cannot be System.Void."
1139         /// </summary>
1140         internal static string ArgumentCannotBeOfTypeVoid {
1141             get {
1142                 return "Argument type cannot be System.Void.";
1143             }
1144         }
1145
1146         /// <summary>
1147         /// A string like  "More than one key matching '{0}' was found in the ExpandoObject."
1148         /// </summary>
1149         internal static string AmbiguousMatchInExpandoObject(object p0) {
1150             return FormatString("More than one key matching '{0}' was found in the ExpandoObject.", p0);
1151         }
1152
1153         /// <summary>
1154         /// A string like  "An element with the same key '{0}' already exists in the ExpandoObject."
1155         /// </summary>
1156         internal static string SameKeyExistsInExpando(object p0) {
1157             return FormatString("An element with the same key '{0}' already exists in the ExpandoObject.", p0);
1158         }
1159
1160         /// <summary>
1161         /// A string like  "The specified key '{0}' does not exist in the ExpandoObject."
1162         /// </summary>
1163         internal static string KeyDoesNotExistInExpando(object p0) {
1164             return FormatString("The specified key '{0}' does not exist in the ExpandoObject.", p0);
1165         }
1166
1167         /// <summary>
1168         /// A string like  "No or Invalid rule produced"
1169         /// </summary>
1170         internal static string NoOrInvalidRuleProduced {
1171             get {
1172                 return "No or Invalid rule produced";
1173             }
1174         }
1175
1176         /// <summary>
1177         /// A string like  "First argument of delegate must be CallSite"
1178         /// </summary>
1179         internal static string FirstArgumentMustBeCallSite {
1180             get {
1181                 return "First argument of delegate must be CallSite";
1182             }
1183         }
1184
1185         /// <summary>
1186         /// A string like  "Bind cannot return null."
1187         /// </summary>
1188         internal static string BindingCannotBeNull {
1189             get {
1190                 return "Bind cannot return null.";
1191             }
1192         }
1193
1194         /// <summary>
1195         /// A string like  "Invalid operation: '{0}'"
1196         /// </summary>
1197         internal static string InvalidOperation(object p0) {
1198             return FormatString("Invalid operation: '{0}'", p0);
1199         }
1200
1201         /// <summary>
1202         /// A string like  "{0} must be greater than or equal to {1}"
1203         /// </summary>
1204         internal static string OutOfRange(object p0, object p1) {
1205             return FormatString("{0} must be greater than or equal to {1}", p0, p1);
1206         }
1207
1208         /// <summary>
1209         /// A string like  "Queue empty."
1210         /// </summary>
1211         internal static string QueueEmpty {
1212             get {
1213                 return "Queue empty.";
1214             }
1215         }
1216
1217         /// <summary>
1218         /// A string like  "Cannot redefine label '{0}' in an inner block."
1219         /// </summary>
1220         internal static string LabelTargetAlreadyDefined(object p0) {
1221             return FormatString("Cannot redefine label '{0}' in an inner block.", p0);
1222         }
1223
1224         /// <summary>
1225         /// A string like  "Cannot jump to undefined label '{0}'."
1226         /// </summary>
1227         internal static string LabelTargetUndefined(object p0) {
1228             return FormatString("Cannot jump to undefined label '{0}'.", p0);
1229         }
1230
1231         /// <summary>
1232         /// A string like  "Control cannot leave a finally block."
1233         /// </summary>
1234         internal static string ControlCannotLeaveFinally {
1235             get {
1236                 return "Control cannot leave a finally block.";
1237             }
1238         }
1239
1240         /// <summary>
1241         /// A string like  "Control cannot leave a filter test."
1242         /// </summary>
1243         internal static string ControlCannotLeaveFilterTest {
1244             get {
1245                 return "Control cannot leave a filter test.";
1246             }
1247         }
1248
1249         /// <summary>
1250         /// A string like  "Cannot jump to ambiguous label '{0}'."
1251         /// </summary>
1252         internal static string AmbiguousJump(object p0) {
1253             return FormatString("Cannot jump to ambiguous label '{0}'.", p0);
1254         }
1255
1256         /// <summary>
1257         /// A string like  "Control cannot enter a try block."
1258         /// </summary>
1259         internal static string ControlCannotEnterTry {
1260             get {
1261                 return "Control cannot enter a try block.";
1262             }
1263         }
1264
1265         /// <summary>
1266         /// A string like  "Control cannot enter an expression--only statements can be jumped into."
1267         /// </summary>
1268         internal static string ControlCannotEnterExpression {
1269             get {
1270                 return "Control cannot enter an expression--only statements can be jumped into.";
1271             }
1272         }
1273
1274         /// <summary>
1275         /// A string like  "Cannot jump to non-local label '{0}' with a value. Only jumps to labels defined in outer blocks can pass values."
1276         /// </summary>
1277         internal static string NonLocalJumpWithValue(object p0) {
1278             return FormatString("Cannot jump to non-local label '{0}' with a value. Only jumps to labels defined in outer blocks can pass values.", p0);
1279         }
1280
1281         /// <summary>
1282         /// A string like  "Extension should have been reduced."
1283         /// </summary>
1284         internal static string ExtensionNotReduced {
1285             get {
1286                 return "Extension should have been reduced.";
1287             }
1288         }
1289
1290         /// <summary>
1291         /// 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."
1292         /// </summary>
1293         internal static string CannotCompileConstant(object p0) {
1294             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);
1295         }
1296
1297         /// <summary>
1298         /// A string like  "Dynamic expressions are not supported by CompileToMethod. Instead, create an expression tree that uses System.Runtime.CompilerServices.CallSite."
1299         /// </summary>
1300         internal static string CannotCompileDynamic {
1301             get {
1302                 return "Dynamic expressions are not supported by CompileToMethod. Instead, create an expression tree that uses System.Runtime.CompilerServices.CallSite.";
1303             }
1304         }
1305
1306         /// <summary>
1307         /// A string like  "Invalid lvalue for assignment: {0}."
1308         /// </summary>
1309         internal static string InvalidLvalue(object p0) {
1310             return FormatString("Invalid lvalue for assignment: {0}.", p0);
1311         }
1312
1313         /// <summary>
1314         /// A string like  "Invalid member type: {0}."
1315         /// </summary>
1316         internal static string InvalidMemberType(object p0) {
1317             return FormatString("Invalid member type: {0}.", p0);
1318         }
1319
1320         /// <summary>
1321         /// A string like  "unknown lift type: '{0}'."
1322         /// </summary>
1323         internal static string UnknownLiftType(object p0) {
1324             return FormatString("unknown lift type: '{0}'.", p0);
1325         }
1326
1327         /// <summary>
1328         /// A string like  "Invalid output directory."
1329         /// </summary>
1330         internal static string InvalidOutputDir {
1331             get {
1332                 return "Invalid output directory.";
1333             }
1334         }
1335
1336         /// <summary>
1337         /// A string like  "Invalid assembly name or file extension."
1338         /// </summary>
1339         internal static string InvalidAsmNameOrExtension {
1340             get {
1341                 return "Invalid assembly name or file extension.";
1342             }
1343         }
1344
1345         /// <summary>
1346         /// A string like  "Collection is read-only."
1347         /// </summary>
1348         internal static string CollectionReadOnly {
1349             get {
1350                 return "Collection is read-only.";
1351             }
1352         }
1353
1354         /// <summary>
1355         /// A string like  "Cannot create instance of {0} because it contains generic parameters"
1356         /// </summary>
1357         internal static string IllegalNewGenericParams(object p0) {
1358             return FormatString("Cannot create instance of {0} because it contains generic parameters", p0);
1359         }
1360
1361         /// <summary>
1362         /// A string like  "variable '{0}' of type '{1}' referenced from scope '{2}', but it is not defined"
1363         /// </summary>
1364         internal static string UndefinedVariable(object p0, object p1, object p2) {
1365             return FormatString("variable '{0}' of type '{1}' referenced from scope '{2}', but it is not defined", p0, p1, p2);
1366         }
1367
1368         /// <summary>
1369         /// A string like  "Cannot close over byref parameter '{0}' referenced in lambda '{1}'"
1370         /// </summary>
1371         internal static string CannotCloseOverByRef(object p0, object p1) {
1372             return FormatString("Cannot close over byref parameter '{0}' referenced in lambda '{1}'", p0, p1);
1373         }
1374
1375         /// <summary>
1376         /// A string like  "Unexpected VarArgs call to method '{0}'"
1377         /// </summary>
1378         internal static string UnexpectedVarArgsCall(object p0) {
1379             return FormatString("Unexpected VarArgs call to method '{0}'", p0);
1380         }
1381
1382         /// <summary>
1383         /// A string like  "Rethrow statement is valid only inside a Catch block."
1384         /// </summary>
1385         internal static string RethrowRequiresCatch {
1386             get {
1387                 return "Rethrow statement is valid only inside a Catch block.";
1388             }
1389         }
1390
1391         /// <summary>
1392         /// A string like  "Try expression is not allowed inside a filter body."
1393         /// </summary>
1394         internal static string TryNotAllowedInFilter {
1395             get {
1396                 return "Try expression is not allowed inside a filter body.";
1397             }
1398         }
1399
1400         /// <summary>
1401         /// 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."
1402         /// </summary>
1403         internal static string MustRewriteToSameNode(object p0, object p1, object p2) {
1404             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);
1405         }
1406
1407         /// <summary>
1408         /// 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."
1409         /// </summary>
1410         internal static string MustRewriteChildToSameType(object p0, object p1, object p2) {
1411             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);
1412         }
1413
1414         /// <summary>
1415         /// 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."
1416         /// </summary>
1417         internal static string MustRewriteWithoutMethod(object p0, object p1) {
1418             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);
1419         }
1420
1421         /// <summary>
1422         /// A string like  "The value null is not of type '{0}' and cannot be used in this collection."
1423         /// </summary>
1424         internal static string InvalidNullValue(object p0) {
1425             return FormatString("The value null is not of type '{0}' and cannot be used in this collection.", p0);
1426         }
1427
1428         /// <summary>
1429         /// A string like  "The value '{0}' is not of type '{1}' and cannot be used in this collection."
1430         /// </summary>
1431         internal static string InvalidObjectType(object p0, object p1) {
1432             return FormatString("The value '{0}' is not of type '{1}' and cannot be used in this collection.", p0, p1);
1433         }
1434
1435         /// <summary>
1436         /// 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."
1437         /// </summary>
1438         internal static string TryNotSupportedForMethodsWithRefArgs(object p0) {
1439             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);
1440         }
1441
1442         /// <summary>
1443         /// 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."
1444         /// </summary>
1445         internal static string TryNotSupportedForValueTypeInstances(object p0) {
1446             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);
1447         }
1448
1449         /// <summary>
1450         /// A string like  "Collection was modified; enumeration operation may not execute."
1451         /// </summary>
1452         internal static string CollectionModifiedWhileEnumerating {
1453             get {
1454                 return "Collection was modified; enumeration operation may not execute.";
1455             }
1456         }
1457
1458         /// <summary>
1459         /// A string like  "Enumeration has either not started or has already finished."
1460         /// </summary>
1461         internal static string EnumerationIsDone {
1462             get {
1463                 return "Enumeration has either not started or has already finished.";
1464             }
1465         }
1466
1467         /// <summary>
1468         /// A string like  "Dynamic operations can only be performed in homogenous AppDomain."
1469         /// </summary>
1470         internal static string HomogenousAppDomainRequired {
1471             get {
1472                 return "Dynamic operations can only be performed in homogenous AppDomain.";
1473             }
1474         }
1475
1476         /// <summary>
1477         /// A string like  "Test value of type '{0}' cannot be used for the comparison method parameter of type '{1}'"
1478         /// </summary>
1479         internal static string TestValueTypeDoesNotMatchComparisonMethodParameter(object p0, object p1) {
1480             return FormatString("Test value of type '{0}' cannot be used for the comparison method parameter of type '{1}'", p0, p1);
1481         }
1482
1483         /// <summary>
1484         /// A string like  "Switch value of type '{0}' cannot be used for the comparison method parameter of type '{1}'"
1485         /// </summary>
1486         internal static string SwitchValueTypeDoesNotMatchComparisonMethodParameter(object p0, object p1) {
1487             return FormatString("Switch value of type '{0}' cannot be used for the comparison method parameter of type '{1}'", p0, p1);
1488         }
1489
1490         /// <summary>
1491         /// A string like  "An IDynamicMetaObjectProvider {0} created an invalid DynamicMetaObject instance."
1492         /// </summary>
1493         internal static string InvalidMetaObjectCreated(object p0) {
1494             return FormatString("An IDynamicMetaObjectProvider {0} created an invalid DynamicMetaObject instance.", p0);
1495         }
1496
1497         /// <summary>
1498         /// A string like  "DebugInfoGenerator created by CreatePdbGenerator can only be used with LambdaExpression.CompileToMethod."
1499         /// </summary>
1500         internal static string PdbGeneratorNeedsExpressionCompiler {
1501             get {
1502                 return "DebugInfoGenerator created by CreatePdbGenerator can only be used with LambdaExpression.CompileToMethod.";
1503             }
1504         }
1505
1506     }
1507     /// <summary>
1508     ///    Strongly-typed and parameterized exception factory.
1509     /// </summary>
1510
1511     internal static partial class Error {
1512         /// <summary>
1513         /// ArgumentException with message like "Argument count must be greater than number of named arguments."
1514         /// </summary>
1515         internal static Exception ArgCntMustBeGreaterThanNameCnt() {
1516             return new ArgumentException(Strings.ArgCntMustBeGreaterThanNameCnt);
1517         }
1518
1519         /// <summary>
1520         /// ArgumentException with message like "reducible nodes must override Expression.Reduce()"
1521         /// </summary>
1522         internal static Exception ReducibleMustOverrideReduce() {
1523             return new ArgumentException(Strings.ReducibleMustOverrideReduce);
1524         }
1525
1526         /// <summary>
1527         /// ArgumentException with message like "node cannot reduce to itself or null"
1528         /// </summary>
1529         internal static Exception MustReduceToDifferent() {
1530             return new ArgumentException(Strings.MustReduceToDifferent);
1531         }
1532
1533         /// <summary>
1534         /// ArgumentException with message like "cannot assign from the reduced node type to the original node type"
1535         /// </summary>
1536         internal static Exception ReducedNotCompatible() {
1537             return new ArgumentException(Strings.ReducedNotCompatible);
1538         }
1539
1540         /// <summary>
1541         /// ArgumentException with message like "Setter must have parameters."
1542         /// </summary>
1543         internal static Exception SetterHasNoParams() {
1544             return new ArgumentException(Strings.SetterHasNoParams);
1545         }
1546
1547         /// <summary>
1548         /// ArgumentException with message like "Property cannot have a managed pointer type."
1549         /// </summary>
1550         internal static Exception PropertyCannotHaveRefType() {
1551             return new ArgumentException(Strings.PropertyCannotHaveRefType);
1552         }
1553
1554         /// <summary>
1555         /// ArgumentException with message like "Indexing parameters of getter and setter must match."
1556         /// </summary>
1557         internal static Exception IndexesOfSetGetMustMatch() {
1558             return new ArgumentException(Strings.IndexesOfSetGetMustMatch);
1559         }
1560
1561         /// <summary>
1562         /// ArgumentException with message like "Accessor method should not have VarArgs."
1563         /// </summary>
1564         internal static Exception AccessorsCannotHaveVarArgs() {
1565             return new ArgumentException(Strings.AccessorsCannotHaveVarArgs);
1566         }
1567
1568         /// <summary>
1569         /// ArgumentException with message like "Accessor indexes cannot be passed ByRef."
1570         /// </summary>
1571         internal static Exception AccessorsCannotHaveByRefArgs() {
1572             return new ArgumentException(Strings.AccessorsCannotHaveByRefArgs);
1573         }
1574
1575         /// <summary>
1576         /// ArgumentException with message like "Bounds count cannot be less than 1"
1577         /// </summary>
1578         internal static Exception BoundsCannotBeLessThanOne() {
1579             return new ArgumentException(Strings.BoundsCannotBeLessThanOne);
1580         }
1581
1582         /// <summary>
1583         /// ArgumentException with message like "type must not be ByRef"
1584         /// </summary>
1585         internal static Exception TypeMustNotBeByRef() {
1586             return new ArgumentException(Strings.TypeMustNotBeByRef);
1587         }
1588
1589         /// <summary>
1590         /// ArgumentException with message like "Type doesn't have constructor with a given signature"
1591         /// </summary>
1592         internal static Exception TypeDoesNotHaveConstructorForTheSignature() {
1593             return new ArgumentException(Strings.TypeDoesNotHaveConstructorForTheSignature);
1594         }
1595
1596         /// <summary>
1597         /// ArgumentException with message like "Count must be non-negative."
1598         /// </summary>
1599         internal static Exception CountCannotBeNegative() {
1600             return new ArgumentException(Strings.CountCannotBeNegative);
1601         }
1602
1603         /// <summary>
1604         /// ArgumentException with message like "arrayType must be an array type"
1605         /// </summary>
1606         internal static Exception ArrayTypeMustBeArray() {
1607             return new ArgumentException(Strings.ArrayTypeMustBeArray);
1608         }
1609
1610         /// <summary>
1611         /// ArgumentException with message like "Setter should have void type."
1612         /// </summary>
1613         internal static Exception SetterMustBeVoid() {
1614             return new ArgumentException(Strings.SetterMustBeVoid);
1615         }
1616
1617         /// <summary>
1618         /// ArgumentException with message like "Property type must match the value type of setter"
1619         /// </summary>
1620         internal static Exception PropertyTyepMustMatchSetter() {
1621             return new ArgumentException(Strings.PropertyTyepMustMatchSetter);
1622         }
1623
1624         /// <summary>
1625         /// ArgumentException with message like "Both accessors must be static."
1626         /// </summary>
1627         internal static Exception BothAccessorsMustBeStatic() {
1628             return new ArgumentException(Strings.BothAccessorsMustBeStatic);
1629         }
1630
1631         /// <summary>
1632         /// ArgumentException with message like "Static method requires null instance, non-static method requires non-null instance."
1633         /// </summary>
1634         internal static Exception OnlyStaticMethodsHaveNullInstance() {
1635             return new ArgumentException(Strings.OnlyStaticMethodsHaveNullInstance);
1636         }
1637
1638         /// <summary>
1639         /// ArgumentException with message like "Property cannot have a void type."
1640         /// </summary>
1641         internal static Exception PropertyTypeCannotBeVoid() {
1642             return new ArgumentException(Strings.PropertyTypeCannotBeVoid);
1643         }
1644
1645         /// <summary>
1646         /// ArgumentException with message like "Can only unbox from an object or interface type to a value type."
1647         /// </summary>
1648         internal static Exception InvalidUnboxType() {
1649             return new ArgumentException(Strings.InvalidUnboxType);
1650         }
1651
1652         /// <summary>
1653         /// ArgumentException with message like "Argument must not have a value type."
1654         /// </summary>
1655         internal static Exception ArgumentMustNotHaveValueType() {
1656             return new ArgumentException(Strings.ArgumentMustNotHaveValueType);
1657         }
1658
1659         /// <summary>
1660         /// ArgumentException with message like "must be reducible node"
1661         /// </summary>
1662         internal static Exception MustBeReducible() {
1663             return new ArgumentException(Strings.MustBeReducible);
1664         }
1665
1666         /// <summary>
1667         /// ArgumentException with message like "Default body must be supplied if case bodies are not System.Void."
1668         /// </summary>
1669         internal static Exception DefaultBodyMustBeSupplied() {
1670             return new ArgumentException(Strings.DefaultBodyMustBeSupplied);
1671         }
1672
1673         /// <summary>
1674         /// ArgumentException with message like "MethodBuilder does not have a valid TypeBuilder"
1675         /// </summary>
1676         internal static Exception MethodBuilderDoesNotHaveTypeBuilder() {
1677             return new ArgumentException(Strings.MethodBuilderDoesNotHaveTypeBuilder);
1678         }
1679
1680         /// <summary>
1681         /// ArgumentException with message like "Type must be derived from System.Delegate"
1682         /// </summary>
1683         internal static Exception TypeMustBeDerivedFromSystemDelegate() {
1684             return new ArgumentException(Strings.TypeMustBeDerivedFromSystemDelegate);
1685         }
1686
1687         /// <summary>
1688         /// ArgumentException with message like "Argument type cannot be void"
1689         /// </summary>
1690         internal static Exception ArgumentTypeCannotBeVoid() {
1691             return new ArgumentException(Strings.ArgumentTypeCannotBeVoid);
1692         }
1693
1694         /// <summary>
1695         /// ArgumentException with message like "Label type must be System.Void if an expression is not supplied"
1696         /// </summary>
1697         internal static Exception LabelMustBeVoidOrHaveExpression() {
1698             return new ArgumentException(Strings.LabelMustBeVoidOrHaveExpression);
1699         }
1700
1701         /// <summary>
1702         /// ArgumentException with message like "Type must be System.Void for this label argument"
1703         /// </summary>
1704         internal static Exception LabelTypeMustBeVoid() {
1705             return new ArgumentException(Strings.LabelTypeMustBeVoid);
1706         }
1707
1708         /// <summary>
1709         /// ArgumentException with message like "Quoted expression must be a lambda"
1710         /// </summary>
1711         internal static Exception QuotedExpressionMustBeLambda() {
1712             return new ArgumentException(Strings.QuotedExpressionMustBeLambda);
1713         }
1714
1715         /// <summary>
1716         /// ArgumentException with message like "Variable '{0}' uses unsupported type '{1}'. Reference types are not supported for variables."
1717         /// </summary>
1718         internal static Exception VariableMustNotBeByRef(object p0, object p1) {
1719             return new ArgumentException(Strings.VariableMustNotBeByRef(p0, p1));
1720         }
1721
1722         /// <summary>
1723         /// ArgumentException with message like "Found duplicate parameter '{0}'. Each ParameterExpression in the list must be a unique object."
1724         /// </summary>
1725         internal static Exception DuplicateVariable(object p0) {
1726             return new ArgumentException(Strings.DuplicateVariable(p0));
1727         }
1728
1729         /// <summary>
1730         /// ArgumentException with message like "Start and End must be well ordered"
1731         /// </summary>
1732         internal static Exception StartEndMustBeOrdered() {
1733             return new ArgumentException(Strings.StartEndMustBeOrdered);
1734         }
1735
1736         /// <summary>
1737         /// ArgumentException with message like "fault cannot be used with catch or finally clauses"
1738         /// </summary>
1739         internal static Exception FaultCannotHaveCatchOrFinally() {
1740             return new ArgumentException(Strings.FaultCannotHaveCatchOrFinally);
1741         }
1742
1743         /// <summary>
1744         /// ArgumentException with message like "try must have at least one catch, finally, or fault clause"
1745         /// </summary>
1746         internal static Exception TryMustHaveCatchFinallyOrFault() {
1747             return new ArgumentException(Strings.TryMustHaveCatchFinallyOrFault);
1748         }
1749
1750         /// <summary>
1751         /// ArgumentException with message like "Body of catch must have the same type as body of try."
1752         /// </summary>
1753         internal static Exception BodyOfCatchMustHaveSameTypeAsBodyOfTry() {
1754             return new ArgumentException(Strings.BodyOfCatchMustHaveSameTypeAsBodyOfTry);
1755         }
1756
1757         /// <summary>
1758         /// InvalidOperationException with message like "Extension node must override the property {0}."
1759         /// </summary>
1760         internal static Exception ExtensionNodeMustOverrideProperty(object p0) {
1761             return new InvalidOperationException(Strings.ExtensionNodeMustOverrideProperty(p0));
1762         }
1763
1764         /// <summary>
1765         /// ArgumentException with message like "User-defined operator method '{0}' must be static."
1766         /// </summary>
1767         internal static Exception UserDefinedOperatorMustBeStatic(object p0) {
1768             return new ArgumentException(Strings.UserDefinedOperatorMustBeStatic(p0));
1769         }
1770
1771         /// <summary>
1772         /// ArgumentException with message like "User-defined operator method '{0}' must not be void."
1773         /// </summary>
1774         internal static Exception UserDefinedOperatorMustNotBeVoid(object p0) {
1775             return new ArgumentException(Strings.UserDefinedOperatorMustNotBeVoid(p0));
1776         }
1777
1778         /// <summary>
1779         /// InvalidOperationException with message like "No coercion operator is defined between types '{0}' and '{1}'."
1780         /// </summary>
1781         internal static Exception CoercionOperatorNotDefined(object p0, object p1) {
1782             return new InvalidOperationException(Strings.CoercionOperatorNotDefined(p0, p1));
1783         }
1784
1785         /// <summary>
1786         /// 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."
1787         /// </summary>
1788         internal static Exception DynamicBinderResultNotAssignable(object p0, object p1, object p2) {
1789             return new InvalidCastException(Strings.DynamicBinderResultNotAssignable(p0, p1, p2));
1790         }
1791
1792         /// <summary>
1793         /// 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."
1794         /// </summary>
1795         internal static Exception DynamicObjectResultNotAssignable(object p0, object p1, object p2, object p3) {
1796             return new InvalidCastException(Strings.DynamicObjectResultNotAssignable(p0, p1, p2, p3));
1797         }
1798
1799         /// <summary>
1800         /// 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."
1801         /// </summary>
1802         internal static Exception DynamicBindingNeedsRestrictions(object p0, object p1) {
1803             return new InvalidOperationException(Strings.DynamicBindingNeedsRestrictions(p0, p1));
1804         }
1805
1806         /// <summary>
1807         /// 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."
1808         /// </summary>
1809         internal static Exception BinderNotCompatibleWithCallSite(object p0, object p1, object p2) {
1810             return new InvalidOperationException(Strings.BinderNotCompatibleWithCallSite(p0, p1, p2));
1811         }
1812
1813         /// <summary>
1814         /// InvalidOperationException with message like "The unary operator {0} is not defined for the type '{1}'."
1815         /// </summary>
1816         internal static Exception UnaryOperatorNotDefined(object p0, object p1) {
1817             return new InvalidOperationException(Strings.UnaryOperatorNotDefined(p0, p1));
1818         }
1819
1820         /// <summary>
1821         /// InvalidOperationException with message like "The binary operator {0} is not defined for the types '{1}' and '{2}'."
1822         /// </summary>
1823         internal static Exception BinaryOperatorNotDefined(object p0, object p1, object p2) {
1824             return new InvalidOperationException(Strings.BinaryOperatorNotDefined(p0, p1, p2));
1825         }
1826
1827         /// <summary>
1828         /// InvalidOperationException with message like "Reference equality is not defined for the types '{0}' and '{1}'."
1829         /// </summary>
1830         internal static Exception ReferenceEqualityNotDefined(object p0, object p1) {
1831             return new InvalidOperationException(Strings.ReferenceEqualityNotDefined(p0, p1));
1832         }
1833
1834         /// <summary>
1835         /// InvalidOperationException with message like "The operands for operator '{0}' do not match the parameters of method '{1}'."
1836         /// </summary>
1837         internal static Exception OperandTypesDoNotMatchParameters(object p0, object p1) {
1838             return new InvalidOperationException(Strings.OperandTypesDoNotMatchParameters(p0, p1));
1839         }
1840
1841         /// <summary>
1842         /// InvalidOperationException with message like "The return type of overload method for operator '{0}' does not match the parameter type of conversion method '{1}'."
1843         /// </summary>
1844         internal static Exception OverloadOperatorTypeDoesNotMatchConversionType(object p0, object p1) {
1845             return new InvalidOperationException(Strings.OverloadOperatorTypeDoesNotMatchConversionType(p0, p1));
1846         }
1847
1848         /// <summary>
1849         /// InvalidOperationException with message like "Conversion is not supported for arithmetic types without operator overloading."
1850         /// </summary>
1851         internal static Exception ConversionIsNotSupportedForArithmeticTypes() {
1852             return new InvalidOperationException(Strings.ConversionIsNotSupportedForArithmeticTypes);
1853         }
1854
1855         /// <summary>
1856         /// ArgumentException with message like "Argument must be array"
1857         /// </summary>
1858         internal static Exception ArgumentMustBeArray() {
1859             return new ArgumentException(Strings.ArgumentMustBeArray);
1860         }
1861
1862         /// <summary>
1863         /// ArgumentException with message like "Argument must be boolean"
1864         /// </summary>
1865         internal static Exception ArgumentMustBeBoolean() {
1866             return new ArgumentException(Strings.ArgumentMustBeBoolean);
1867         }
1868
1869         /// <summary>
1870         /// ArgumentException with message like "The user-defined equality method '{0}' must return a boolean value."
1871         /// </summary>
1872         internal static Exception EqualityMustReturnBoolean(object p0) {
1873             return new ArgumentException(Strings.EqualityMustReturnBoolean(p0));
1874         }
1875
1876         /// <summary>
1877         /// ArgumentException with message like "Argument must be either a FieldInfo or PropertyInfo"
1878         /// </summary>
1879         internal static Exception ArgumentMustBeFieldInfoOrPropertInfo() {
1880             return new ArgumentException(Strings.ArgumentMustBeFieldInfoOrPropertInfo);
1881         }
1882
1883         /// <summary>
1884         /// ArgumentException with message like "Argument must be either a FieldInfo, PropertyInfo or MethodInfo"
1885         /// </summary>
1886         internal static Exception ArgumentMustBeFieldInfoOrPropertInfoOrMethod() {
1887             return new ArgumentException(Strings.ArgumentMustBeFieldInfoOrPropertInfoOrMethod);
1888         }
1889
1890         /// <summary>
1891         /// ArgumentException with message like "Argument must be an instance member"
1892         /// </summary>
1893         internal static Exception ArgumentMustBeInstanceMember() {
1894             return new ArgumentException(Strings.ArgumentMustBeInstanceMember);
1895         }
1896
1897         /// <summary>
1898         /// ArgumentException with message like "Argument must be of an integer type"
1899         /// </summary>
1900         internal static Exception ArgumentMustBeInteger() {
1901             return new ArgumentException(Strings.ArgumentMustBeInteger);
1902         }
1903
1904         /// <summary>
1905         /// ArgumentException with message like "Argument for array index must be of type Int32"
1906         /// </summary>
1907         internal static Exception ArgumentMustBeArrayIndexType() {
1908             return new ArgumentException(Strings.ArgumentMustBeArrayIndexType);
1909         }
1910
1911         /// <summary>
1912         /// ArgumentException with message like "Argument must be single dimensional array type"
1913         /// </summary>
1914         internal static Exception ArgumentMustBeSingleDimensionalArrayType() {
1915             return new ArgumentException(Strings.ArgumentMustBeSingleDimensionalArrayType);
1916         }
1917
1918         /// <summary>
1919         /// ArgumentException with message like "Argument types do not match"
1920         /// </summary>
1921         internal static Exception ArgumentTypesMustMatch() {
1922             return new ArgumentException(Strings.ArgumentTypesMustMatch);
1923         }
1924
1925         /// <summary>
1926         /// InvalidOperationException with message like "Cannot auto initialize elements of value type through property '{0}', use assignment instead"
1927         /// </summary>
1928         internal static Exception CannotAutoInitializeValueTypeElementThroughProperty(object p0) {
1929             return new InvalidOperationException(Strings.CannotAutoInitializeValueTypeElementThroughProperty(p0));
1930         }
1931
1932         /// <summary>
1933         /// InvalidOperationException with message like "Cannot auto initialize members of value type through property '{0}', use assignment instead"
1934         /// </summary>
1935         internal static Exception CannotAutoInitializeValueTypeMemberThroughProperty(object p0) {
1936             return new InvalidOperationException(Strings.CannotAutoInitializeValueTypeMemberThroughProperty(p0));
1937         }
1938
1939         /// <summary>
1940         /// ArgumentException with message like "The type used in TypeAs Expression must be of reference or nullable type, {0} is neither"
1941         /// </summary>
1942         internal static Exception IncorrectTypeForTypeAs(object p0) {
1943             return new ArgumentException(Strings.IncorrectTypeForTypeAs(p0));
1944         }
1945
1946         /// <summary>
1947         /// InvalidOperationException with message like "Coalesce used with type that cannot be null"
1948         /// </summary>
1949         internal static Exception CoalesceUsedOnNonNullType() {
1950             return new InvalidOperationException(Strings.CoalesceUsedOnNonNullType);
1951         }
1952
1953         /// <summary>
1954         /// InvalidOperationException with message like "An expression of type '{0}' cannot be used to initialize an array of type '{1}'"
1955         /// </summary>
1956         internal static Exception ExpressionTypeCannotInitializeArrayType(object p0, object p1) {
1957             return new InvalidOperationException(Strings.ExpressionTypeCannotInitializeArrayType(p0, p1));
1958         }
1959
1960         /// <summary>
1961         /// ArgumentException with message like "Expression of type '{0}' cannot be used for constructor parameter of type '{1}'"
1962         /// </summary>
1963         internal static Exception ExpressionTypeDoesNotMatchConstructorParameter(object p0, object p1) {
1964             return new ArgumentException(Strings.ExpressionTypeDoesNotMatchConstructorParameter(p0, p1));
1965         }
1966
1967         /// <summary>
1968         /// ArgumentException with message like " Argument type '{0}' does not match the corresponding member type '{1}'"
1969         /// </summary>
1970         internal static Exception ArgumentTypeDoesNotMatchMember(object p0, object p1) {
1971             return new ArgumentException(Strings.ArgumentTypeDoesNotMatchMember(p0, p1));
1972         }
1973
1974         /// <summary>
1975         /// ArgumentException with message like " The member '{0}' is not declared on type '{1}' being created"
1976         /// </summary>
1977         internal static Exception ArgumentMemberNotDeclOnType(object p0, object p1) {
1978             return new ArgumentException(Strings.ArgumentMemberNotDeclOnType(p0, p1));
1979         }
1980
1981         /// <summary>
1982         /// ArgumentException with message like "Expression of type '{0}' cannot be used for parameter of type '{1}' of method '{2}'"
1983         /// </summary>
1984         internal static Exception ExpressionTypeDoesNotMatchMethodParameter(object p0, object p1, object p2) {
1985             return new ArgumentException(Strings.ExpressionTypeDoesNotMatchMethodParameter(p0, p1, p2));
1986         }
1987
1988         /// <summary>
1989         /// ArgumentException with message like "Expression of type '{0}' cannot be used for parameter of type '{1}'"
1990         /// </summary>
1991         internal static Exception ExpressionTypeDoesNotMatchParameter(object p0, object p1) {
1992             return new ArgumentException(Strings.ExpressionTypeDoesNotMatchParameter(p0, p1));
1993         }
1994
1995         /// <summary>
1996         /// ArgumentException with message like "Expression of type '{0}' cannot be used for return type '{1}'"
1997         /// </summary>
1998         internal static Exception ExpressionTypeDoesNotMatchReturn(object p0, object p1) {
1999             return new ArgumentException(Strings.ExpressionTypeDoesNotMatchReturn(p0, p1));
2000         }
2001
2002         /// <summary>
2003         /// ArgumentException with message like "Expression of type '{0}' cannot be used for assignment to type '{1}'"
2004         /// </summary>
2005         internal static Exception ExpressionTypeDoesNotMatchAssignment(object p0, object p1) {
2006             return new ArgumentException(Strings.ExpressionTypeDoesNotMatchAssignment(p0, p1));
2007         }
2008
2009         /// <summary>
2010         /// ArgumentException with message like "Expression of type '{0}' cannot be used for label of type '{1}'"
2011         /// </summary>
2012         internal static Exception ExpressionTypeDoesNotMatchLabel(object p0, object p1) {
2013             return new ArgumentException(Strings.ExpressionTypeDoesNotMatchLabel(p0, p1));
2014         }
2015
2016         /// <summary>
2017         /// ArgumentException with message like "Expression of type '{0}' cannot be invoked"
2018         /// </summary>
2019         internal static Exception ExpressionTypeNotInvocable(object p0) {
2020             return new ArgumentException(Strings.ExpressionTypeNotInvocable(p0));
2021         }
2022
2023         /// <summary>
2024         /// ArgumentException with message like "Field '{0}' is not defined for type '{1}'"
2025         /// </summary>
2026         internal static Exception FieldNotDefinedForType(object p0, object p1) {
2027             return new ArgumentException(Strings.FieldNotDefinedForType(p0, p1));
2028         }
2029
2030         /// <summary>
2031         /// ArgumentException with message like "Instance field '{0}' is not defined for type '{1}'"
2032         /// </summary>
2033         internal static Exception InstanceFieldNotDefinedForType(object p0, object p1) {
2034             return new ArgumentException(Strings.InstanceFieldNotDefinedForType(p0, p1));
2035         }
2036
2037         /// <summary>
2038         /// ArgumentException with message like "Field '{0}.{1}' is not defined for type '{2}'"
2039         /// </summary>
2040         internal static Exception FieldInfoNotDefinedForType(object p0, object p1, object p2) {
2041             return new ArgumentException(Strings.FieldInfoNotDefinedForType(p0, p1, p2));
2042         }
2043
2044         /// <summary>
2045         /// ArgumentException with message like "Incorrect number of indexes"
2046         /// </summary>
2047         internal static Exception IncorrectNumberOfIndexes() {
2048             return new ArgumentException(Strings.IncorrectNumberOfIndexes);
2049         }
2050
2051         /// <summary>
2052         /// InvalidOperationException with message like "Incorrect number of arguments supplied for lambda invocation"
2053         /// </summary>
2054         internal static Exception IncorrectNumberOfLambdaArguments() {
2055             return new InvalidOperationException(Strings.IncorrectNumberOfLambdaArguments);
2056         }
2057
2058         /// <summary>
2059         /// ArgumentException with message like "Incorrect number of parameters supplied for lambda declaration"
2060         /// </summary>
2061         internal static Exception IncorrectNumberOfLambdaDeclarationParameters() {
2062             return new ArgumentException(Strings.IncorrectNumberOfLambdaDeclarationParameters);
2063         }
2064
2065         /// <summary>
2066         /// ArgumentException with message like "Incorrect number of arguments supplied for call to method '{0}'"
2067         /// </summary>
2068         internal static Exception IncorrectNumberOfMethodCallArguments(object p0) {
2069             return new ArgumentException(Strings.IncorrectNumberOfMethodCallArguments(p0));
2070         }
2071
2072         /// <summary>
2073         /// ArgumentException with message like "Incorrect number of arguments for constructor"
2074         /// </summary>
2075         internal static Exception IncorrectNumberOfConstructorArguments() {
2076             return new ArgumentException(Strings.IncorrectNumberOfConstructorArguments);
2077         }
2078
2079         /// <summary>
2080         /// ArgumentException with message like " Incorrect number of members for constructor"
2081         /// </summary>
2082         internal static Exception IncorrectNumberOfMembersForGivenConstructor() {
2083             return new ArgumentException(Strings.IncorrectNumberOfMembersForGivenConstructor);
2084         }
2085
2086         /// <summary>
2087         /// ArgumentException with message like "Incorrect number of arguments for the given members "
2088         /// </summary>
2089         internal static Exception IncorrectNumberOfArgumentsForMembers() {
2090             return new ArgumentException(Strings.IncorrectNumberOfArgumentsForMembers);
2091         }
2092
2093         /// <summary>
2094         /// ArgumentException with message like "Lambda type parameter must be derived from System.Delegate"
2095         /// </summary>
2096         internal static Exception LambdaTypeMustBeDerivedFromSystemDelegate() {
2097             return new ArgumentException(Strings.LambdaTypeMustBeDerivedFromSystemDelegate);
2098         }
2099
2100         /// <summary>
2101         /// ArgumentException with message like "Member '{0}' not field or property"
2102         /// </summary>
2103         internal static Exception MemberNotFieldOrProperty(object p0) {
2104             return new ArgumentException(Strings.MemberNotFieldOrProperty(p0));
2105         }
2106
2107         /// <summary>
2108         /// ArgumentException with message like "Method {0} contains generic parameters"
2109         /// </summary>
2110         internal static Exception MethodContainsGenericParameters(object p0) {
2111             return new ArgumentException(Strings.MethodContainsGenericParameters(p0));
2112         }
2113
2114         /// <summary>
2115         /// ArgumentException with message like "Method {0} is a generic method definition"
2116         /// </summary>
2117         internal static Exception MethodIsGeneric(object p0) {
2118             return new ArgumentException(Strings.MethodIsGeneric(p0));
2119         }
2120
2121         /// <summary>
2122         /// ArgumentException with message like "The method '{0}.{1}' is not a property accessor"
2123         /// </summary>
2124         internal static Exception MethodNotPropertyAccessor(object p0, object p1) {
2125             return new ArgumentException(Strings.MethodNotPropertyAccessor(p0, p1));
2126         }
2127
2128         /// <summary>
2129         /// ArgumentException with message like "The property '{0}' has no 'get' accessor"
2130         /// </summary>
2131         internal static Exception PropertyDoesNotHaveGetter(object p0) {
2132             return new ArgumentException(Strings.PropertyDoesNotHaveGetter(p0));
2133         }
2134
2135         /// <summary>
2136         /// ArgumentException with message like "The property '{0}' has no 'set' accessor"
2137         /// </summary>
2138         internal static Exception PropertyDoesNotHaveSetter(object p0) {
2139             return new ArgumentException(Strings.PropertyDoesNotHaveSetter(p0));
2140         }
2141
2142         /// <summary>
2143         /// ArgumentException with message like "The property '{0}' has no 'get' or 'set' accessors"
2144         /// </summary>
2145         internal static Exception PropertyDoesNotHaveAccessor(object p0) {
2146             return new ArgumentException(Strings.PropertyDoesNotHaveAccessor(p0));
2147         }
2148
2149         /// <summary>
2150         /// ArgumentException with message like "'{0}' is not a member of type '{1}'"
2151         /// </summary>
2152         internal static Exception NotAMemberOfType(object p0, object p1) {
2153             return new ArgumentException(Strings.NotAMemberOfType(p0, p1));
2154         }
2155
2156         /// <summary>
2157         /// NotImplementedException with message like "The operator '{0}' is not implemented for type '{1}'"
2158         /// </summary>
2159         internal static Exception OperatorNotImplementedForType(object p0, object p1) {
2160             return new NotImplementedException(Strings.OperatorNotImplementedForType(p0, p1));
2161         }
2162
2163         /// <summary>
2164         /// ArgumentException with message like "ParameterExpression of type '{0}' cannot be used for delegate parameter of type '{1}'"
2165         /// </summary>
2166         internal static Exception ParameterExpressionNotValidAsDelegate(object p0, object p1) {
2167             return new ArgumentException(Strings.ParameterExpressionNotValidAsDelegate(p0, p1));
2168         }
2169
2170         /// <summary>
2171         /// ArgumentException with message like "Property '{0}' is not defined for type '{1}'"
2172         /// </summary>
2173         internal static Exception PropertyNotDefinedForType(object p0, object p1) {
2174             return new ArgumentException(Strings.PropertyNotDefinedForType(p0, p1));
2175         }
2176
2177         /// <summary>
2178         /// ArgumentException with message like "Instance property '{0}' is not defined for type '{1}'"
2179         /// </summary>
2180         internal static Exception InstancePropertyNotDefinedForType(object p0, object p1) {
2181             return new ArgumentException(Strings.InstancePropertyNotDefinedForType(p0, p1));
2182         }
2183
2184         /// <summary>
2185         /// ArgumentException with message like "Instance property '{0}' that takes no argument is not defined for type '{1}'"
2186         /// </summary>
2187         internal static Exception InstancePropertyWithoutParameterNotDefinedForType(object p0, object p1) {
2188             return new ArgumentException(Strings.InstancePropertyWithoutParameterNotDefinedForType(p0, p1));
2189         }
2190
2191         /// <summary>
2192         /// ArgumentException with message like "Instance property '{0}{1}' is not defined for type '{2}'"
2193         /// </summary>
2194         internal static Exception InstancePropertyWithSpecifiedParametersNotDefinedForType(object p0, object p1, object p2) {
2195             return new ArgumentException(Strings.InstancePropertyWithSpecifiedParametersNotDefinedForType(p0, p1, p2));
2196         }
2197
2198         /// <summary>
2199         /// ArgumentException with message like "Method '{0}' declared on type '{1}' cannot be called with instance of type '{2}'"
2200         /// </summary>
2201         internal static Exception InstanceAndMethodTypeMismatch(object p0, object p1, object p2) {
2202             return new ArgumentException(Strings.InstanceAndMethodTypeMismatch(p0, p1, p2));
2203         }
2204
2205         /// <summary>
2206         /// ArgumentException with message like "Type {0} contains generic parameters"
2207         /// </summary>
2208         internal static Exception TypeContainsGenericParameters(object p0) {
2209             return new ArgumentException(Strings.TypeContainsGenericParameters(p0));
2210         }
2211
2212         /// <summary>
2213         /// ArgumentException with message like "Type {0} is a generic type definition"
2214         /// </summary>
2215         internal static Exception TypeIsGeneric(object p0) {
2216             return new ArgumentException(Strings.TypeIsGeneric(p0));
2217         }
2218
2219         /// <summary>
2220         /// ArgumentException with message like "Type '{0}' does not have a default constructor"
2221         /// </summary>
2222         internal static Exception TypeMissingDefaultConstructor(object p0) {
2223             return new ArgumentException(Strings.TypeMissingDefaultConstructor(p0));
2224         }
2225
2226         /// <summary>
2227         /// ArgumentException with message like "List initializers must contain at least one initializer"
2228         /// </summary>
2229         internal static Exception ListInitializerWithZeroMembers() {
2230             return new ArgumentException(Strings.ListInitializerWithZeroMembers);
2231         }
2232
2233         /// <summary>
2234         /// ArgumentException with message like "Element initializer method must be named 'Add'"
2235         /// </summary>
2236         internal static Exception ElementInitializerMethodNotAdd() {
2237             return new ArgumentException(Strings.ElementInitializerMethodNotAdd);
2238         }
2239
2240         /// <summary>
2241         /// ArgumentException with message like "Parameter '{0}' of element initializer method '{1}' must not be a pass by reference parameter"
2242         /// </summary>
2243         internal static Exception ElementInitializerMethodNoRefOutParam(object p0, object p1) {
2244             return new ArgumentException(Strings.ElementInitializerMethodNoRefOutParam(p0, p1));
2245         }
2246
2247         /// <summary>
2248         /// ArgumentException with message like "Element initializer method must have at least 1 parameter"
2249         /// </summary>
2250         internal static Exception ElementInitializerMethodWithZeroArgs() {
2251             return new ArgumentException(Strings.ElementInitializerMethodWithZeroArgs);
2252         }
2253
2254         /// <summary>
2255         /// ArgumentException with message like "Element initializer method must be an instance method"
2256         /// </summary>
2257         internal static Exception ElementInitializerMethodStatic() {
2258             return new ArgumentException(Strings.ElementInitializerMethodStatic);
2259         }
2260
2261         /// <summary>
2262         /// ArgumentException with message like "Type '{0}' is not IEnumerable"
2263         /// </summary>
2264         internal static Exception TypeNotIEnumerable(object p0) {
2265             return new ArgumentException(Strings.TypeNotIEnumerable(p0));
2266         }
2267
2268         /// <summary>
2269         /// InvalidOperationException with message like "Type parameter is {0}. Expected a delegate."
2270         /// </summary>
2271         internal static Exception TypeParameterIsNotDelegate(object p0) {
2272             return new InvalidOperationException(Strings.TypeParameterIsNotDelegate(p0));
2273         }
2274
2275         /// <summary>
2276         /// InvalidOperationException with message like "Unexpected coalesce operator."
2277         /// </summary>
2278         internal static Exception UnexpectedCoalesceOperator() {
2279             return new InvalidOperationException(Strings.UnexpectedCoalesceOperator);
2280         }
2281
2282         /// <summary>
2283         /// InvalidOperationException with message like "Cannot cast from type '{0}' to type '{1}"
2284         /// </summary>
2285         internal static Exception InvalidCast(object p0, object p1) {
2286             return new InvalidOperationException(Strings.InvalidCast(p0, p1));
2287         }
2288
2289         /// <summary>
2290         /// ArgumentException with message like "Unhandled binary: {0}"
2291         /// </summary>
2292         internal static Exception UnhandledBinary(object p0) {
2293             return new ArgumentException(Strings.UnhandledBinary(p0));
2294         }
2295
2296         /// <summary>
2297         /// ArgumentException with message like "Unhandled binding "
2298         /// </summary>
2299         internal static Exception UnhandledBinding() {
2300             return new ArgumentException(Strings.UnhandledBinding);
2301         }
2302
2303         /// <summary>
2304         /// ArgumentException with message like "Unhandled Binding Type: {0}"
2305         /// </summary>
2306         internal static Exception UnhandledBindingType(object p0) {
2307             return new ArgumentException(Strings.UnhandledBindingType(p0));
2308         }
2309
2310         /// <summary>
2311         /// ArgumentException with message like "Unhandled convert: {0}"
2312         /// </summary>
2313         internal static Exception UnhandledConvert(object p0) {
2314             return new ArgumentException(Strings.UnhandledConvert(p0));
2315         }
2316
2317         /// <summary>
2318         /// ArgumentException with message like "Unhandled Expression Type: {0}"
2319         /// </summary>
2320         internal static Exception UnhandledExpressionType(object p0) {
2321             return new ArgumentException(Strings.UnhandledExpressionType(p0));
2322         }
2323
2324         /// <summary>
2325         /// ArgumentException with message like "Unhandled unary: {0}"
2326         /// </summary>
2327         internal static Exception UnhandledUnary(object p0) {
2328             return new ArgumentException(Strings.UnhandledUnary(p0));
2329         }
2330
2331         /// <summary>
2332         /// ArgumentException with message like "Unknown binding type"
2333         /// </summary>
2334         internal static Exception UnknownBindingType() {
2335             return new ArgumentException(Strings.UnknownBindingType);
2336         }
2337
2338         /// <summary>
2339         /// ArgumentException with message like "The user-defined operator method '{1}' for operator '{0}' must have identical parameter and return types."
2340         /// </summary>
2341         internal static Exception UserDefinedOpMustHaveConsistentTypes(object p0, object p1) {
2342             return new ArgumentException(Strings.UserDefinedOpMustHaveConsistentTypes(p0, p1));
2343         }
2344
2345         /// <summary>
2346         /// 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."
2347         /// </summary>
2348         internal static Exception UserDefinedOpMustHaveValidReturnType(object p0, object p1) {
2349             return new ArgumentException(Strings.UserDefinedOpMustHaveValidReturnType(p0, p1));
2350         }
2351
2352         /// <summary>
2353         /// ArgumentException with message like "The user-defined operator method '{1}' for operator '{0}' must have associated boolean True and False operators."
2354         /// </summary>
2355         internal static Exception LogicalOperatorMustHaveBooleanOperators(object p0, object p1) {
2356             return new ArgumentException(Strings.LogicalOperatorMustHaveBooleanOperators(p0, p1));
2357         }
2358
2359         /// <summary>
2360         /// InvalidOperationException with message like "No method '{0}' exists on type '{1}'."
2361         /// </summary>
2362         internal static Exception MethodDoesNotExistOnType(object p0, object p1) {
2363             return new InvalidOperationException(Strings.MethodDoesNotExistOnType(p0, p1));
2364         }
2365
2366         /// <summary>
2367         /// InvalidOperationException with message like "No method '{0}' on type '{1}' is compatible with the supplied arguments."
2368         /// </summary>
2369         internal static Exception MethodWithArgsDoesNotExistOnType(object p0, object p1) {
2370             return new InvalidOperationException(Strings.MethodWithArgsDoesNotExistOnType(p0, p1));
2371         }
2372
2373         /// <summary>
2374         /// 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. "
2375         /// </summary>
2376         internal static Exception GenericMethodWithArgsDoesNotExistOnType(object p0, object p1) {
2377             return new InvalidOperationException(Strings.GenericMethodWithArgsDoesNotExistOnType(p0, p1));
2378         }
2379
2380         /// <summary>
2381         /// InvalidOperationException with message like "More than one method '{0}' on type '{1}' is compatible with the supplied arguments."
2382         /// </summary>
2383         internal static Exception MethodWithMoreThanOneMatch(object p0, object p1) {
2384             return new InvalidOperationException(Strings.MethodWithMoreThanOneMatch(p0, p1));
2385         }
2386
2387         /// <summary>
2388         /// InvalidOperationException with message like "More than one property '{0}' on type '{1}' is compatible with the supplied arguments."
2389         /// </summary>
2390         internal static Exception PropertyWithMoreThanOneMatch(object p0, object p1) {
2391             return new InvalidOperationException(Strings.PropertyWithMoreThanOneMatch(p0, p1));
2392         }
2393
2394         /// <summary>
2395         /// ArgumentException with message like "An incorrect number of type args were specified for the declaration of a Func type."
2396         /// </summary>
2397         internal static Exception IncorrectNumberOfTypeArgsForFunc() {
2398             return new ArgumentException(Strings.IncorrectNumberOfTypeArgsForFunc);
2399         }
2400
2401         /// <summary>
2402         /// ArgumentException with message like "An incorrect number of type args were specified for the declaration of an Action type."
2403         /// </summary>
2404         internal static Exception IncorrectNumberOfTypeArgsForAction() {
2405             return new ArgumentException(Strings.IncorrectNumberOfTypeArgsForAction);
2406         }
2407
2408         /// <summary>
2409         /// ArgumentException with message like "Argument type cannot be System.Void."
2410         /// </summary>
2411         internal static Exception ArgumentCannotBeOfTypeVoid() {
2412             return new ArgumentException(Strings.ArgumentCannotBeOfTypeVoid);
2413         }
2414
2415         /// <summary>
2416         /// System.Reflection.AmbiguousMatchException with message like "More than one key matching '{0}' was found in the ExpandoObject."
2417         /// </summary>
2418         internal static Exception AmbiguousMatchInExpandoObject(object p0) {
2419             return new System.Reflection.AmbiguousMatchException(Strings.AmbiguousMatchInExpandoObject(p0));
2420         }
2421
2422         /// <summary>
2423         /// ArgumentException with message like "An element with the same key '{0}' already exists in the ExpandoObject."
2424         /// </summary>
2425         internal static Exception SameKeyExistsInExpando(object p0) {
2426             return new ArgumentException(Strings.SameKeyExistsInExpando(p0));
2427         }
2428
2429         /// <summary>
2430         /// System.Collections.Generic.KeyNotFoundException with message like "The specified key '{0}' does not exist in the ExpandoObject."
2431         /// </summary>
2432         internal static Exception KeyDoesNotExistInExpando(object p0) {
2433             return new System.Collections.Generic.KeyNotFoundException(Strings.KeyDoesNotExistInExpando(p0));
2434         }
2435
2436         /// <summary>
2437         /// InvalidOperationException with message like "No or Invalid rule produced"
2438         /// </summary>
2439         internal static Exception NoOrInvalidRuleProduced() {
2440             return new InvalidOperationException(Strings.NoOrInvalidRuleProduced);
2441         }
2442
2443         /// <summary>
2444         /// ArgumentException with message like "First argument of delegate must be CallSite"
2445         /// </summary>
2446         internal static Exception FirstArgumentMustBeCallSite() {
2447             return new ArgumentException(Strings.FirstArgumentMustBeCallSite);
2448         }
2449
2450         /// <summary>
2451         /// InvalidOperationException with message like "Bind cannot return null."
2452         /// </summary>
2453         internal static Exception BindingCannotBeNull() {
2454             return new InvalidOperationException(Strings.BindingCannotBeNull);
2455         }
2456
2457         /// <summary>
2458         /// ArgumentException with message like "Invalid operation: '{0}'"
2459         /// </summary>
2460         internal static Exception InvalidOperation(object p0) {
2461             return new ArgumentException(Strings.InvalidOperation(p0));
2462         }
2463
2464         /// <summary>
2465         /// ArgumentOutOfRangeException with message like "{0} must be greater than or equal to {1}"
2466         /// </summary>
2467         internal static Exception OutOfRange(object p0, object p1) {
2468             return new ArgumentOutOfRangeException(Strings.OutOfRange(p0, p1));
2469         }
2470
2471         /// <summary>
2472         /// InvalidOperationException with message like "Queue empty."
2473         /// </summary>
2474         internal static Exception QueueEmpty() {
2475             return new InvalidOperationException(Strings.QueueEmpty);
2476         }
2477
2478         /// <summary>
2479         /// InvalidOperationException with message like "Cannot redefine label '{0}' in an inner block."
2480         /// </summary>
2481         internal static Exception LabelTargetAlreadyDefined(object p0) {
2482             return new InvalidOperationException(Strings.LabelTargetAlreadyDefined(p0));
2483         }
2484
2485         /// <summary>
2486         /// InvalidOperationException with message like "Cannot jump to undefined label '{0}'."
2487         /// </summary>
2488         internal static Exception LabelTargetUndefined(object p0) {
2489             return new InvalidOperationException(Strings.LabelTargetUndefined(p0));
2490         }
2491
2492         /// <summary>
2493         /// InvalidOperationException with message like "Control cannot leave a finally block."
2494         /// </summary>
2495         internal static Exception ControlCannotLeaveFinally() {
2496             return new InvalidOperationException(Strings.ControlCannotLeaveFinally);
2497         }
2498
2499         /// <summary>
2500         /// InvalidOperationException with message like "Control cannot leave a filter test."
2501         /// </summary>
2502         internal static Exception ControlCannotLeaveFilterTest() {
2503             return new InvalidOperationException(Strings.ControlCannotLeaveFilterTest);
2504         }
2505
2506         /// <summary>
2507         /// InvalidOperationException with message like "Cannot jump to ambiguous label '{0}'."
2508         /// </summary>
2509         internal static Exception AmbiguousJump(object p0) {
2510             return new InvalidOperationException(Strings.AmbiguousJump(p0));
2511         }
2512
2513         /// <summary>
2514         /// InvalidOperationException with message like "Control cannot enter a try block."
2515         /// </summary>
2516         internal static Exception ControlCannotEnterTry() {
2517             return new InvalidOperationException(Strings.ControlCannotEnterTry);
2518         }
2519
2520         /// <summary>
2521         /// InvalidOperationException with message like "Control cannot enter an expression--only statements can be jumped into."
2522         /// </summary>
2523         internal static Exception ControlCannotEnterExpression() {
2524             return new InvalidOperationException(Strings.ControlCannotEnterExpression);
2525         }
2526
2527         /// <summary>
2528         /// 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."
2529         /// </summary>
2530         internal static Exception NonLocalJumpWithValue(object p0) {
2531             return new InvalidOperationException(Strings.NonLocalJumpWithValue(p0));
2532         }
2533
2534         /// <summary>
2535         /// InvalidOperationException with message like "Extension should have been reduced."
2536         /// </summary>
2537         internal static Exception ExtensionNotReduced() {
2538             return new InvalidOperationException(Strings.ExtensionNotReduced);
2539         }
2540
2541         /// <summary>
2542         /// 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."
2543         /// </summary>
2544         internal static Exception CannotCompileConstant(object p0) {
2545             return new InvalidOperationException(Strings.CannotCompileConstant(p0));
2546         }
2547
2548         /// <summary>
2549         /// NotSupportedException with message like "Dynamic expressions are not supported by CompileToMethod. Instead, create an expression tree that uses System.Runtime.CompilerServices.CallSite."
2550         /// </summary>
2551         internal static Exception CannotCompileDynamic() {
2552             return new NotSupportedException(Strings.CannotCompileDynamic);
2553         }
2554
2555         /// <summary>
2556         /// InvalidOperationException with message like "Invalid lvalue for assignment: {0}."
2557         /// </summary>
2558         internal static Exception InvalidLvalue(object p0) {
2559             return new InvalidOperationException(Strings.InvalidLvalue(p0));
2560         }
2561
2562         /// <summary>
2563         /// InvalidOperationException with message like "Invalid member type: {0}."
2564         /// </summary>
2565         internal static Exception InvalidMemberType(object p0) {
2566             return new InvalidOperationException(Strings.InvalidMemberType(p0));
2567         }
2568
2569         /// <summary>
2570         /// InvalidOperationException with message like "unknown lift type: '{0}'."
2571         /// </summary>
2572         internal static Exception UnknownLiftType(object p0) {
2573             return new InvalidOperationException(Strings.UnknownLiftType(p0));
2574         }
2575
2576         /// <summary>
2577         /// ArgumentException with message like "Invalid output directory."
2578         /// </summary>
2579         internal static Exception InvalidOutputDir() {
2580             return new ArgumentException(Strings.InvalidOutputDir);
2581         }
2582
2583         /// <summary>
2584         /// ArgumentException with message like "Invalid assembly name or file extension."
2585         /// </summary>
2586         internal static Exception InvalidAsmNameOrExtension() {
2587             return new ArgumentException(Strings.InvalidAsmNameOrExtension);
2588         }
2589
2590         /// <summary>
2591         /// NotSupportedException with message like "Collection is read-only."
2592         /// </summary>
2593         internal static Exception CollectionReadOnly() {
2594             return new NotSupportedException(Strings.CollectionReadOnly);
2595         }
2596
2597         /// <summary>
2598         /// ArgumentException with message like "Cannot create instance of {0} because it contains generic parameters"
2599         /// </summary>
2600         internal static Exception IllegalNewGenericParams(object p0) {
2601             return new ArgumentException(Strings.IllegalNewGenericParams(p0));
2602         }
2603
2604         /// <summary>
2605         /// InvalidOperationException with message like "variable '{0}' of type '{1}' referenced from scope '{2}', but it is not defined"
2606         /// </summary>
2607         internal static Exception UndefinedVariable(object p0, object p1, object p2) {
2608             return new InvalidOperationException(Strings.UndefinedVariable(p0, p1, p2));
2609         }
2610
2611         /// <summary>
2612         /// InvalidOperationException with message like "Cannot close over byref parameter '{0}' referenced in lambda '{1}'"
2613         /// </summary>
2614         internal static Exception CannotCloseOverByRef(object p0, object p1) {
2615             return new InvalidOperationException(Strings.CannotCloseOverByRef(p0, p1));
2616         }
2617
2618         /// <summary>
2619         /// InvalidOperationException with message like "Unexpected VarArgs call to method '{0}'"
2620         /// </summary>
2621         internal static Exception UnexpectedVarArgsCall(object p0) {
2622             return new InvalidOperationException(Strings.UnexpectedVarArgsCall(p0));
2623         }
2624
2625         /// <summary>
2626         /// InvalidOperationException with message like "Rethrow statement is valid only inside a Catch block."
2627         /// </summary>
2628         internal static Exception RethrowRequiresCatch() {
2629             return new InvalidOperationException(Strings.RethrowRequiresCatch);
2630         }
2631
2632         /// <summary>
2633         /// InvalidOperationException with message like "Try expression is not allowed inside a filter body."
2634         /// </summary>
2635         internal static Exception TryNotAllowedInFilter() {
2636             return new InvalidOperationException(Strings.TryNotAllowedInFilter);
2637         }
2638
2639         /// <summary>
2640         /// 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."
2641         /// </summary>
2642         internal static Exception MustRewriteToSameNode(object p0, object p1, object p2) {
2643             return new InvalidOperationException(Strings.MustRewriteToSameNode(p0, p1, p2));
2644         }
2645
2646         /// <summary>
2647         /// 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."
2648         /// </summary>
2649         internal static Exception MustRewriteChildToSameType(object p0, object p1, object p2) {
2650             return new InvalidOperationException(Strings.MustRewriteChildToSameType(p0, p1, p2));
2651         }
2652
2653         /// <summary>
2654         /// 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."
2655         /// </summary>
2656         internal static Exception MustRewriteWithoutMethod(object p0, object p1) {
2657             return new InvalidOperationException(Strings.MustRewriteWithoutMethod(p0, p1));
2658         }
2659
2660         /// <summary>
2661         /// 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."
2662         /// </summary>
2663         internal static Exception TryNotSupportedForMethodsWithRefArgs(object p0) {
2664             return new NotSupportedException(Strings.TryNotSupportedForMethodsWithRefArgs(p0));
2665         }
2666
2667         /// <summary>
2668         /// 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."
2669         /// </summary>
2670         internal static Exception TryNotSupportedForValueTypeInstances(object p0) {
2671             return new NotSupportedException(Strings.TryNotSupportedForValueTypeInstances(p0));
2672         }
2673
2674         /// <summary>
2675         /// InvalidOperationException with message like "Collection was modified; enumeration operation may not execute."
2676         /// </summary>
2677         internal static Exception CollectionModifiedWhileEnumerating() {
2678             return new InvalidOperationException(Strings.CollectionModifiedWhileEnumerating);
2679         }
2680
2681         /// <summary>
2682         /// InvalidOperationException with message like "Enumeration has either not started or has already finished."
2683         /// </summary>
2684         internal static Exception EnumerationIsDone() {
2685             return new InvalidOperationException(Strings.EnumerationIsDone);
2686         }
2687
2688         /// <summary>
2689         /// InvalidOperationException with message like "Dynamic operations can only be performed in homogenous AppDomain."
2690         /// </summary>
2691         internal static Exception HomogenousAppDomainRequired() {
2692             return new InvalidOperationException(Strings.HomogenousAppDomainRequired);
2693         }
2694
2695         /// <summary>
2696         /// ArgumentException with message like "Test value of type '{0}' cannot be used for the comparison method parameter of type '{1}'"
2697         /// </summary>
2698         internal static Exception TestValueTypeDoesNotMatchComparisonMethodParameter(object p0, object p1) {
2699             return new ArgumentException(Strings.TestValueTypeDoesNotMatchComparisonMethodParameter(p0, p1));
2700         }
2701
2702         /// <summary>
2703         /// ArgumentException with message like "Switch value of type '{0}' cannot be used for the comparison method parameter of type '{1}'"
2704         /// </summary>
2705         internal static Exception SwitchValueTypeDoesNotMatchComparisonMethodParameter(object p0, object p1) {
2706             return new ArgumentException(Strings.SwitchValueTypeDoesNotMatchComparisonMethodParameter(p0, p1));
2707         }
2708
2709         /// <summary>
2710         /// InvalidOperationException with message like "An IDynamicMetaObjectProvider {0} created an invalid DynamicMetaObject instance."
2711         /// </summary>
2712         internal static Exception InvalidMetaObjectCreated(object p0) {
2713             return new InvalidOperationException(Strings.InvalidMetaObjectCreated(p0));
2714         }
2715
2716         /// <summary>
2717         /// NotSupportedException with message like "DebugInfoGenerator created by CreatePdbGenerator can only be used with LambdaExpression.CompileToMethod."
2718         /// </summary>
2719         internal static Exception PdbGeneratorNeedsExpressionCompiler() {
2720             return new NotSupportedException(Strings.PdbGeneratorNeedsExpressionCompiler);
2721         }
2722
2723     }
2724
2725     // *** END GENERATED CODE ***
2726
2727     #endregion
2728
2729 }