PageRenderTime 156ms CodeModel.GetById 70ms app.highlight 52ms RepoModel.GetById 18ms app.codeStats 2ms

/Runtime/Microsoft.Scripting.Core/Utils/ExceptionFactory.Generated.cs

http://github.com/IronLanguages/main
C# | 2729 lines | 1267 code | 368 blank | 1094 comment | 0 complexity | ec8699a12ec0e0e7b4bf4d45da92ec62 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

   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
  16using System;
  17
  18#if !FEATURE_CORE_DLR
  19namespace Microsoft.Scripting.Ast {
  20#else
  21namespace 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        

Large files files are truncated, but you can click here to view the full file