PageRenderTime 58ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 1ms

/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Utils/ExceptionFactory.Generated.cs

https://bitbucket.org/danipen/mono
C# | 2729 lines | 1267 code | 368 blank | 1094 comment | 0 complexity | ec8699a12ec0e0e7b4bf4d45da92ec62 MD5 | raw file
Possible License(s): Unlicense, Apache-2.0, LGPL-2.0, MPL-2.0-no-copyleft-exception, CC-BY-SA-3.0, GPL-2.0

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. using System;
  16. #if !FEATURE_CORE_DLR
  17. namespace Microsoft.Scripting.Ast {
  18. #else
  19. namespace System.Linq.Expressions {
  20. #endif
  21. internal static partial class Strings {
  22. private static string FormatString(string format, params object[] args) {
  23. return string.Format(System.Globalization.CultureInfo.CurrentCulture, format, args);
  24. }
  25. }
  26. #region Generated Exception Factory
  27. // *** BEGIN GENERATED CODE ***
  28. // generated by function: gen_expr_factory_core from: generate_exception_factory.py
  29. /// <summary>
  30. /// Strongly-typed and parameterized string factory.
  31. /// </summary>
  32. internal static partial class Strings {
  33. /// <summary>
  34. /// A string like "Method precondition violated"
  35. /// </summary>
  36. internal static string MethodPreconditionViolated {
  37. get {
  38. return "Method precondition violated";
  39. }
  40. }
  41. /// <summary>
  42. /// A string like "Invalid argument value"
  43. /// </summary>
  44. internal static string InvalidArgumentValue {
  45. get {
  46. return "Invalid argument value";
  47. }
  48. }
  49. /// <summary>
  50. /// A string like "Non-empty collection required"
  51. /// </summary>
  52. internal static string NonEmptyCollectionRequired {
  53. get {
  54. return "Non-empty collection required";
  55. }
  56. }
  57. /// <summary>
  58. /// A string like "Argument count must be greater than number of named arguments."
  59. /// </summary>
  60. internal static string ArgCntMustBeGreaterThanNameCnt {
  61. get {
  62. return "Argument count must be greater than number of named arguments.";
  63. }
  64. }
  65. /// <summary>
  66. /// A string like "reducible nodes must override Expression.Reduce()"
  67. /// </summary>
  68. internal static string ReducibleMustOverrideReduce {
  69. get {
  70. return "reducible nodes must override Expression.Reduce()";
  71. }
  72. }
  73. /// <summary>
  74. /// A string like "node cannot reduce to itself or null"
  75. /// </summary>
  76. internal static string MustReduceToDifferent {
  77. get {
  78. return "node cannot reduce to itself or null";
  79. }
  80. }
  81. /// <summary>
  82. /// A string like "cannot assign from the reduced node type to the original node type"
  83. /// </summary>
  84. internal static string ReducedNotCompatible {
  85. get {
  86. return "cannot assign from the reduced node type to the original node type";
  87. }
  88. }
  89. /// <summary>
  90. /// A string like "Setter must have parameters."
  91. /// </summary>
  92. internal static string SetterHasNoParams {
  93. get {
  94. return "Setter must have parameters.";
  95. }
  96. }
  97. /// <summary>
  98. /// A string like "Property cannot have a managed pointer type."
  99. /// </summary>
  100. internal static string PropertyCannotHaveRefType {
  101. get {
  102. return "Property cannot have a managed pointer type.";
  103. }
  104. }
  105. /// <summary>
  106. /// A string like "Indexing parameters of getter and setter must match."
  107. /// </summary>
  108. internal static string IndexesOfSetGetMustMatch {
  109. get {
  110. return "Indexing parameters of getter and setter must match.";
  111. }
  112. }
  113. /// <summary>
  114. /// A string like "Accessor method should not have VarArgs."
  115. /// </summary>
  116. internal static string AccessorsCannotHaveVarArgs {
  117. get {
  118. return "Accessor method should not have VarArgs.";
  119. }
  120. }
  121. /// <summary>
  122. /// A string like "Accessor indexes cannot be passed ByRef."
  123. /// </summary>
  124. internal static string AccessorsCannotHaveByRefArgs {
  125. get {
  126. return "Accessor indexes cannot be passed ByRef.";
  127. }
  128. }
  129. /// <summary>
  130. /// A string like "Bounds count cannot be less than 1"
  131. /// </summary>
  132. internal static string BoundsCannotBeLessThanOne {
  133. get {
  134. return "Bounds count cannot be less than 1";
  135. }
  136. }
  137. /// <summary>
  138. /// A string like "type must not be ByRef"
  139. /// </summary>
  140. internal static string TypeMustNotBeByRef {
  141. get {
  142. return "type must not be ByRef";
  143. }
  144. }
  145. /// <summary>
  146. /// A string like "Type doesn't have constructor with a given signature"
  147. /// </summary>
  148. internal static string TypeDoesNotHaveConstructorForTheSignature {
  149. get {
  150. return "Type doesn't have constructor with a given signature";
  151. }
  152. }
  153. /// <summary>
  154. /// A string like "Count must be non-negative."
  155. /// </summary>
  156. internal static string CountCannotBeNegative {
  157. get {
  158. return "Count must be non-negative.";
  159. }
  160. }
  161. /// <summary>
  162. /// A string like "arrayType must be an array type"
  163. /// </summary>
  164. internal static string ArrayTypeMustBeArray {
  165. get {
  166. return "arrayType must be an array type";
  167. }
  168. }
  169. /// <summary>
  170. /// A string like "Setter should have void type."
  171. /// </summary>
  172. internal static string SetterMustBeVoid {
  173. get {
  174. return "Setter should have void type.";
  175. }
  176. }
  177. /// <summary>
  178. /// A string like "Property type must match the value type of setter"
  179. /// </summary>
  180. internal static string PropertyTyepMustMatchSetter {
  181. get {
  182. return "Property type must match the value type of setter";
  183. }
  184. }
  185. /// <summary>
  186. /// A string like "Both accessors must be static."
  187. /// </summary>
  188. internal static string BothAccessorsMustBeStatic {
  189. get {
  190. return "Both accessors must be static.";
  191. }
  192. }
  193. /// <summary>
  194. /// A string like "Static field requires null instance, non-static field requires non-null instance."
  195. /// </summary>
  196. internal static string OnlyStaticFieldsHaveNullInstance {
  197. get {
  198. return "Static field requires null instance, non-static field requires non-null instance.";
  199. }
  200. }
  201. /// <summary>
  202. /// A string like "Static property requires null instance, non-static property requires non-null instance."
  203. /// </summary>
  204. internal static string OnlyStaticPropertiesHaveNullInstance {
  205. get {
  206. return "Static property requires null instance, non-static property requires non-null instance.";
  207. }
  208. }
  209. /// <summary>
  210. /// A string like "Static method requires null instance, non-static method requires non-null instance."
  211. /// </summary>
  212. internal static string OnlyStaticMethodsHaveNullInstance {
  213. get {
  214. return "Static method requires null instance, non-static method requires non-null instance.";
  215. }
  216. }
  217. /// <summary>
  218. /// A string like "Property cannot have a void type."
  219. /// </summary>
  220. internal static string PropertyTypeCannotBeVoid {
  221. get {
  222. return "Property cannot have a void type.";
  223. }
  224. }
  225. /// <summary>
  226. /// A string like "Can only unbox from an object or interface type to a value type."
  227. /// </summary>
  228. internal static string InvalidUnboxType {
  229. get {
  230. return "Can only unbox from an object or interface type to a value type.";
  231. }
  232. }
  233. /// <summary>
  234. /// A string like "Expression must be readable"
  235. /// </summary>
  236. internal static string ExpressionMustBeReadable {
  237. get {
  238. return "Expression must be readable";
  239. }
  240. }
  241. /// <summary>
  242. /// A string like "Expression must be writeable"
  243. /// </summary>
  244. internal static string ExpressionMustBeWriteable {
  245. get {
  246. return "Expression must be writeable";
  247. }
  248. }
  249. /// <summary>
  250. /// A string like "Argument must not have a value type."
  251. /// </summary>
  252. internal static string ArgumentMustNotHaveValueType {
  253. get {
  254. return "Argument must not have a value type.";
  255. }
  256. }
  257. /// <summary>
  258. /// A string like "must be reducible node"
  259. /// </summary>
  260. internal static string MustBeReducible {
  261. get {
  262. return "must be reducible node";
  263. }
  264. }
  265. /// <summary>
  266. /// A string like "All test values must have the same type."
  267. /// </summary>
  268. internal static string AllTestValuesMustHaveSameType {
  269. get {
  270. return "All test values must have the same type.";
  271. }
  272. }
  273. /// <summary>
  274. /// A string like "All case bodies and the default body must have the same type."
  275. /// </summary>
  276. internal static string AllCaseBodiesMustHaveSameType {
  277. get {
  278. return "All case bodies and the default body must have the same type.";
  279. }
  280. }
  281. /// <summary>
  282. /// A string like "Default body must be supplied if case bodies are not System.Void."
  283. /// </summary>
  284. internal static string DefaultBodyMustBeSupplied {
  285. get {
  286. return "Default body must be supplied if case bodies are not System.Void.";
  287. }
  288. }
  289. /// <summary>
  290. /// A string like "MethodBuilder does not have a valid TypeBuilder"
  291. /// </summary>
  292. internal static string MethodBuilderDoesNotHaveTypeBuilder {
  293. get {
  294. return "MethodBuilder does not have a valid TypeBuilder";
  295. }
  296. }
  297. /// <summary>
  298. /// A string like "Type must be derived from System.Delegate"
  299. /// </summary>
  300. internal static string TypeMustBeDerivedFromSystemDelegate {
  301. get {
  302. return "Type must be derived from System.Delegate";
  303. }
  304. }
  305. /// <summary>
  306. /// A string like "Argument type cannot be void"
  307. /// </summary>
  308. internal static string ArgumentTypeCannotBeVoid {
  309. get {
  310. return "Argument type cannot be void";
  311. }
  312. }
  313. /// <summary>
  314. /// A string like "Label type must be System.Void if an expression is not supplied"
  315. /// </summary>
  316. internal static string LabelMustBeVoidOrHaveExpression {
  317. get {
  318. return "Label type must be System.Void if an expression is not supplied";
  319. }
  320. }
  321. /// <summary>
  322. /// A string like "Type must be System.Void for this label argument"
  323. /// </summary>
  324. internal static string LabelTypeMustBeVoid {
  325. get {
  326. return "Type must be System.Void for this label argument";
  327. }
  328. }
  329. /// <summary>
  330. /// A string like "Quoted expression must be a lambda"
  331. /// </summary>
  332. internal static string QuotedExpressionMustBeLambda {
  333. get {
  334. return "Quoted expression must be a lambda";
  335. }
  336. }
  337. /// <summary>
  338. /// A string like "Variable '{0}' uses unsupported type '{1}'. Reference types are not supported for variables."
  339. /// </summary>
  340. internal static string VariableMustNotBeByRef(object p0, object p1) {
  341. return FormatString("Variable '{0}' uses unsupported type '{1}'. Reference types are not supported for variables.", p0, p1);
  342. }
  343. /// <summary>
  344. /// A string like "Found duplicate parameter '{0}'. Each ParameterExpression in the list must be a unique object."
  345. /// </summary>
  346. internal static string DuplicateVariable(object p0) {
  347. return FormatString("Found duplicate parameter '{0}'. Each ParameterExpression in the list must be a unique object.", p0);
  348. }
  349. /// <summary>
  350. /// A string like "Start and End must be well ordered"
  351. /// </summary>
  352. internal static string StartEndMustBeOrdered {
  353. get {
  354. return "Start and End must be well ordered";
  355. }
  356. }
  357. /// <summary>
  358. /// A string like "fault cannot be used with catch or finally clauses"
  359. /// </summary>
  360. internal static string FaultCannotHaveCatchOrFinally {
  361. get {
  362. return "fault cannot be used with catch or finally clauses";
  363. }
  364. }
  365. /// <summary>
  366. /// A string like "try must have at least one catch, finally, or fault clause"
  367. /// </summary>
  368. internal static string TryMustHaveCatchFinallyOrFault {
  369. get {
  370. return "try must have at least one catch, finally, or fault clause";
  371. }
  372. }
  373. /// <summary>
  374. /// A string like "Body of catch must have the same type as body of try."
  375. /// </summary>
  376. internal static string BodyOfCatchMustHaveSameTypeAsBodyOfTry {
  377. get {
  378. return "Body of catch must have the same type as body of try.";
  379. }
  380. }
  381. /// <summary>
  382. /// A string like "Extension node must override the property {0}."
  383. /// </summary>
  384. internal static string ExtensionNodeMustOverrideProperty(object p0) {
  385. return FormatString("Extension node must override the property {0}.", p0);
  386. }
  387. /// <summary>
  388. /// A string like "User-defined operator method '{0}' must be static."
  389. /// </summary>
  390. internal static string UserDefinedOperatorMustBeStatic(object p0) {
  391. return FormatString("User-defined operator method '{0}' must be static.", p0);
  392. }
  393. /// <summary>
  394. /// A string like "User-defined operator method '{0}' must not be void."
  395. /// </summary>
  396. internal static string UserDefinedOperatorMustNotBeVoid(object p0) {
  397. return FormatString("User-defined operator method '{0}' must not be void.", p0);
  398. }
  399. /// <summary>
  400. /// A string like "No coercion operator is defined between types '{0}' and '{1}'."
  401. /// </summary>
  402. internal static string CoercionOperatorNotDefined(object p0, object p1) {
  403. return FormatString("No coercion operator is defined between types '{0}' and '{1}'.", p0, p1);
  404. }
  405. /// <summary>
  406. /// 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."
  407. /// </summary>
  408. internal static string DynamicBinderResultNotAssignable(object p0, object p1, object p2) {
  409. 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);
  410. }
  411. /// <summary>
  412. /// 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."
  413. /// </summary>
  414. internal static string DynamicObjectResultNotAssignable(object p0, object p1, object p2, object p3) {
  415. 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);
  416. }
  417. /// <summary>
  418. /// 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."
  419. /// </summary>
  420. internal static string DynamicBindingNeedsRestrictions(object p0, object p1) {
  421. 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);
  422. }
  423. /// <summary>
  424. /// A string like "The result type '{0}' of the binder '{1}' is not compatible with the result type '{2}' expected by the call site."
  425. /// </summary>
  426. internal static string BinderNotCompatibleWithCallSite(object p0, object p1, object p2) {
  427. 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);
  428. }
  429. /// <summary>
  430. /// A string like "The unary operator {0} is not defined for the type '{1}'."
  431. /// </summary>
  432. internal static string UnaryOperatorNotDefined(object p0, object p1) {
  433. return FormatString("The unary operator {0} is not defined for the type '{1}'.", p0, p1);
  434. }
  435. /// <summary>
  436. /// A string like "The binary operator {0} is not defined for the types '{1}' and '{2}'."
  437. /// </summary>
  438. internal static string BinaryOperatorNotDefined(object p0, object p1, object p2) {
  439. return FormatString("The binary operator {0} is not defined for the types '{1}' and '{2}'.", p0, p1, p2);
  440. }
  441. /// <summary>
  442. /// A string like "Reference equality is not defined for the types '{0}' and '{1}'."
  443. /// </summary>
  444. internal static string ReferenceEqualityNotDefined(object p0, object p1) {
  445. return FormatString("Reference equality is not defined for the types '{0}' and '{1}'.", p0, p1);
  446. }
  447. /// <summary>
  448. /// A string like "The operands for operator '{0}' do not match the parameters of method '{1}'."
  449. /// </summary>
  450. internal static string OperandTypesDoNotMatchParameters(object p0, object p1) {
  451. return FormatString("The operands for operator '{0}' do not match the parameters of method '{1}'.", p0, p1);
  452. }
  453. /// <summary>
  454. /// A string like "The return type of overload method for operator '{0}' does not match the parameter type of conversion method '{1}'."
  455. /// </summary>
  456. internal static string OverloadOperatorTypeDoesNotMatchConversionType(object p0, object p1) {
  457. return FormatString("The return type of overload method for operator '{0}' does not match the parameter type of conversion method '{1}'.", p0, p1);
  458. }
  459. /// <summary>
  460. /// A string like "Conversion is not supported for arithmetic types without operator overloading."
  461. /// </summary>
  462. internal static string ConversionIsNotSupportedForArithmeticTypes {
  463. get {
  464. return "Conversion is not supported for arithmetic types without operator overloading.";
  465. }
  466. }
  467. /// <summary>
  468. /// A string like "Argument must be array"
  469. /// </summary>
  470. internal static string ArgumentMustBeArray {
  471. get {
  472. return "Argument must be array";
  473. }
  474. }
  475. /// <summary>
  476. /// A string like "Argument must be boolean"
  477. /// </summary>
  478. internal static string ArgumentMustBeBoolean {
  479. get {
  480. return "Argument must be boolean";
  481. }
  482. }
  483. /// <summary>
  484. /// A string like "The user-defined equality method '{0}' must return a boolean value."
  485. /// </summary>
  486. internal static string EqualityMustReturnBoolean(object p0) {
  487. return FormatString("The user-defined equality method '{0}' must return a boolean value.", p0);
  488. }
  489. /// <summary>
  490. /// A string like "Argument must be either a FieldInfo or PropertyInfo"
  491. /// </summary>
  492. internal static string ArgumentMustBeFieldInfoOrPropertInfo {
  493. get {
  494. return "Argument must be either a FieldInfo or PropertyInfo";
  495. }
  496. }
  497. /// <summary>
  498. /// A string like "Argument must be either a FieldInfo, PropertyInfo or MethodInfo"
  499. /// </summary>
  500. internal static string ArgumentMustBeFieldInfoOrPropertInfoOrMethod {
  501. get {
  502. return "Argument must be either a FieldInfo, PropertyInfo or MethodInfo";
  503. }
  504. }
  505. /// <summary>
  506. /// A string like "Argument must be an instance member"
  507. /// </summary>
  508. internal static string ArgumentMustBeInstanceMember {
  509. get {
  510. return "Argument must be an instance member";
  511. }
  512. }
  513. /// <summary>
  514. /// A string like "Argument must be of an integer type"
  515. /// </summary>
  516. internal static string ArgumentMustBeInteger {
  517. get {
  518. return "Argument must be of an integer type";
  519. }
  520. }
  521. /// <summary>
  522. /// A string like "Argument for array index must be of type Int32"
  523. /// </summary>
  524. internal static string ArgumentMustBeArrayIndexType {
  525. get {
  526. return "Argument for array index must be of type Int32";
  527. }
  528. }
  529. /// <summary>
  530. /// A string like "Argument must be single dimensional array type"
  531. /// </summary>
  532. internal static string ArgumentMustBeSingleDimensionalArrayType {
  533. get {
  534. return "Argument must be single dimensional array type";
  535. }
  536. }
  537. /// <summary>
  538. /// A string like "Argument types do not match"
  539. /// </summary>
  540. internal static string ArgumentTypesMustMatch {
  541. get {
  542. return "Argument types do not match";
  543. }
  544. }
  545. /// <summary>
  546. /// A string like "Cannot auto initialize elements of value type through property '{0}', use assignment instead"
  547. /// </summary>
  548. internal static string CannotAutoInitializeValueTypeElementThroughProperty(object p0) {
  549. return FormatString("Cannot auto initialize elements of value type through property '{0}', use assignment instead", p0);
  550. }
  551. /// <summary>
  552. /// A string like "Cannot auto initialize members of value type through property '{0}', use assignment instead"
  553. /// </summary>
  554. internal static string CannotAutoInitializeValueTypeMemberThroughProperty(object p0) {
  555. return FormatString("Cannot auto initialize members of value type through property '{0}', use assignment instead", p0);
  556. }
  557. /// <summary>
  558. /// A string like "The type used in TypeAs Expression must be of reference or nullable type, {0} is neither"
  559. /// </summary>
  560. internal static string IncorrectTypeForTypeAs(object p0) {
  561. return FormatString("The type used in TypeAs Expression must be of reference or nullable type, {0} is neither", p0);
  562. }
  563. /// <summary>
  564. /// A string like "Coalesce used with type that cannot be null"
  565. /// </summary>
  566. internal static string CoalesceUsedOnNonNullType {
  567. get {
  568. return "Coalesce used with type that cannot be null";
  569. }
  570. }
  571. /// <summary>
  572. /// A string like "An expression of type '{0}' cannot be used to initialize an array of type '{1}'"
  573. /// </summary>
  574. internal static string ExpressionTypeCannotInitializeArrayType(object p0, object p1) {
  575. return FormatString("An expression of type '{0}' cannot be used to initialize an array of type '{1}'", p0, p1);
  576. }
  577. /// <summary>
  578. /// A string like "Expression of type '{0}' cannot be used for constructor parameter of type '{1}'"
  579. /// </summary>
  580. internal static string ExpressionTypeDoesNotMatchConstructorParameter(object p0, object p1) {
  581. return FormatString("Expression of type '{0}' cannot be used for constructor parameter of type '{1}'", p0, p1);
  582. }
  583. /// <summary>
  584. /// A string like " Argument type '{0}' does not match the corresponding member type '{1}'"
  585. /// </summary>
  586. internal static string ArgumentTypeDoesNotMatchMember(object p0, object p1) {
  587. return FormatString(" Argument type '{0}' does not match the corresponding member type '{1}'", p0, p1);
  588. }
  589. /// <summary>
  590. /// A string like " The member '{0}' is not declared on type '{1}' being created"
  591. /// </summary>
  592. internal static string ArgumentMemberNotDeclOnType(object p0, object p1) {
  593. return FormatString(" The member '{0}' is not declared on type '{1}' being created", p0, p1);
  594. }
  595. /// <summary>
  596. /// A string like "Expression of type '{0}' cannot be used for parameter of type '{1}' of method '{2}'"
  597. /// </summary>
  598. internal static string ExpressionTypeDoesNotMatchMethodParameter(object p0, object p1, object p2) {
  599. return FormatString("Expression of type '{0}' cannot be used for parameter of type '{1}' of method '{2}'", p0, p1, p2);
  600. }
  601. /// <summary>
  602. /// A string like "Expression of type '{0}' cannot be used for parameter of type '{1}'"
  603. /// </summary>
  604. internal static string ExpressionTypeDoesNotMatchParameter(object p0, object p1) {
  605. return FormatString("Expression of type '{0}' cannot be used for parameter of type '{1}'", p0, p1);
  606. }
  607. /// <summary>
  608. /// A string like "Expression of type '{0}' cannot be used for return type '{1}'"
  609. /// </summary>
  610. internal static string ExpressionTypeDoesNotMatchReturn(object p0, object p1) {
  611. return FormatString("Expression of type '{0}' cannot be used for return type '{1}'", p0, p1);
  612. }
  613. /// <summary>
  614. /// A string like "Expression of type '{0}' cannot be used for assignment to type '{1}'"
  615. /// </summary>
  616. internal static string ExpressionTypeDoesNotMatchAssignment(object p0, object p1) {
  617. return FormatString("Expression of type '{0}' cannot be used for assignment to type '{1}'", p0, p1);
  618. }
  619. /// <summary>
  620. /// A string like "Expression of type '{0}' cannot be used for label of type '{1}'"
  621. /// </summary>
  622. internal static string ExpressionTypeDoesNotMatchLabel(object p0, object p1) {
  623. return FormatString("Expression of type '{0}' cannot be used for label of type '{1}'", p0, p1);
  624. }
  625. /// <summary>
  626. /// A string like "Expression of type '{0}' cannot be invoked"
  627. /// </summary>
  628. internal static string ExpressionTypeNotInvocable(object p0) {
  629. return FormatString("Expression of type '{0}' cannot be invoked", p0);
  630. }
  631. /// <summary>
  632. /// A string like "Field '{0}' is not defined for type '{1}'"
  633. /// </summary>
  634. internal static string FieldNotDefinedForType(object p0, object p1) {
  635. return FormatString("Field '{0}' is not defined for type '{1}'", p0, p1);
  636. }
  637. /// <summary>
  638. /// A string like "Instance field '{0}' is not defined for type '{1}'"
  639. /// </summary>
  640. internal static string InstanceFieldNotDefinedForType(object p0, object p1) {
  641. return FormatString("Instance field '{0}' is not defined for type '{1}'", p0, p1);
  642. }
  643. /// <summary>
  644. /// A string like "Field '{0}.{1}' is not defined for type '{2}'"
  645. /// </summary>
  646. internal static string FieldInfoNotDefinedForType(object p0, object p1, object p2) {
  647. return FormatString("Field '{0}.{1}' is not defined for type '{2}'", p0, p1, p2);
  648. }
  649. /// <summary>
  650. /// A string like "Incorrect number of indexes"
  651. /// </summary>
  652. internal static string IncorrectNumberOfIndexes {
  653. get {
  654. return "Incorrect number of indexes";
  655. }
  656. }
  657. /// <summary>
  658. /// A string like "Incorrect number of arguments supplied for lambda invocation"
  659. /// </summary>
  660. internal static string IncorrectNumberOfLambdaArguments {
  661. get {
  662. return "Incorrect number of arguments supplied for lambda invocation";
  663. }
  664. }
  665. /// <summary>
  666. /// A string like "Incorrect number of parameters supplied for lambda declaration"
  667. /// </summary>
  668. internal static string IncorrectNumberOfLambdaDeclarationParameters {
  669. get {
  670. return "Incorrect number of parameters supplied for lambda declaration";
  671. }
  672. }
  673. /// <summary>
  674. /// A string like "Incorrect number of arguments supplied for call to method '{0}'"
  675. /// </summary>
  676. internal static string IncorrectNumberOfMethodCallArguments(object p0) {
  677. return FormatString("Incorrect number of arguments supplied for call to method '{0}'", p0);
  678. }
  679. /// <summary>
  680. /// A string like "Incorrect number of arguments for constructor"
  681. /// </summary>
  682. internal static string IncorrectNumberOfConstructorArguments {
  683. get {
  684. return "Incorrect number of arguments for constructor";
  685. }
  686. }
  687. /// <summary>
  688. /// A string like " Incorrect number of members for constructor"
  689. /// </summary>
  690. internal static string IncorrectNumberOfMembersForGivenConstructor {
  691. get {
  692. return " Incorrect number of members for constructor";
  693. }
  694. }
  695. /// <summary>
  696. /// A string like "Incorrect number of arguments for the given members "
  697. /// </summary>
  698. internal static string IncorrectNumberOfArgumentsForMembers {
  699. get {
  700. return "Incorrect number of arguments for the given members ";
  701. }
  702. }
  703. /// <summary>
  704. /// A string like "Lambda type parameter must be derived from System.Delegate"
  705. /// </summary>
  706. internal static string LambdaTypeMustBeDerivedFromSystemDelegate {
  707. get {
  708. return "Lambda type parameter must be derived from System.Delegate";
  709. }
  710. }
  711. /// <summary>
  712. /// A string like "Member '{0}' not field or property"
  713. /// </summary>
  714. internal static string MemberNotFieldOrProperty(object p0) {
  715. return FormatString("Member '{0}' not field or property", p0);
  716. }
  717. /// <summary>
  718. /// A string like "Method {0} contains generic parameters"
  719. /// </summary>
  720. internal static string MethodContainsGenericParameters(object p0) {
  721. return FormatString("Method {0} contains generic parameters", p0);
  722. }
  723. /// <summary>
  724. /// A string like "Method {0} is a generic method definition"
  725. /// </summary>
  726. internal static string MethodIsGeneric(object p0) {
  727. return FormatString("Method {0} is a generic method definition", p0);
  728. }
  729. /// <summary>
  730. /// A string like "The method '{0}.{1}' is not a property accessor"
  731. /// </summary>
  732. internal static string MethodNotPropertyAccessor(object p0, object p1) {
  733. return FormatString("The method '{0}.{1}' is not a property accessor", p0, p1);
  734. }
  735. /// <summary>
  736. /// A string like "The property '{0}' has no 'get' accessor"
  737. /// </summary>
  738. internal static string PropertyDoesNotHaveGetter(object p0) {
  739. return FormatString("The property '{0}' has no 'get' accessor", p0);
  740. }
  741. /// <summary>
  742. /// A string like "The property '{0}' has no 'set' accessor"
  743. /// </summary>
  744. internal static string PropertyDoesNotHaveSetter(object p0) {
  745. return FormatString("The property '{0}' has no 'set' accessor", p0);
  746. }
  747. /// <summary>
  748. /// A string like "The property '{0}' has no 'get' or 'set' accessors"
  749. /// </summary>
  750. internal static string PropertyDoesNotHaveAccessor(object p0) {
  751. return FormatString("The property '{0}' has no 'get' or 'set' accessors", p0);
  752. }
  753. /// <summary>
  754. /// A string like "'{0}' is not a member of type '{1}'"
  755. /// </summary>
  756. internal static string NotAMemberOfType(object p0, object p1) {
  757. return FormatString("'{0}' is not a member of type '{1}'", p0, p1);
  758. }
  759. /// <summary>
  760. /// A string like "The operator '{0}' is not implemented for type '{1}'"
  761. /// </summary>
  762. internal static string OperatorNotImplementedForType(object p0, object p1) {
  763. return FormatString("The operator '{0}' is not implemented for type '{1}'", p0, p1);
  764. }
  765. /// <summary>
  766. /// A string like "ParameterExpression of type '{0}' cannot be used for delegate parameter of type '{1}'"
  767. /// </summary>
  768. internal static string ParameterExpressionNotValidAsDelegate(object p0, object p1) {
  769. return FormatString("ParameterExpression of type '{0}' cannot be used for delegate parameter of type '{1}'", p0, p1);
  770. }
  771. /// <summary>
  772. /// A string like "Property '{0}' is not defined for type '{1}'"
  773. /// </summary>
  774. internal static string PropertyNotDefinedForType(object p0, object p1) {
  775. return FormatString("Property '{0}' is not defined for type '{1}'", p0, p1);
  776. }
  777. /// <summary>
  778. /// A string like "Instance property '{0}' is not defined for type '{1}'"
  779. /// </summary>
  780. internal static string InstancePropertyNotDefinedForType(object p0, object p1) {
  781. return FormatString("Instance property '{0}' is not defined for type '{1}'", p0, p1);
  782. }
  783. /// <summary>
  784. /// A string like "Instance property '{0}' that takes no argument is not defined for type '{1}'"
  785. /// </summary>
  786. internal static string InstancePropertyWithoutParameterNotDefinedForType(object p0, object p1) {
  787. return FormatString("Instance property '{0}' that takes no argument is not defined for type '{1}'", p0, p1);
  788. }
  789. /// <summary>
  790. /// A string like "Instance property '{0}{1}' is not defined for type '{2}'"
  791. /// </summary>
  792. internal static string InstancePropertyWithSpecifiedParametersNotDefinedForType(object p0, object p1, object p2) {
  793. return FormatString("Instance property '{0}{1}' is not defined for type '{2}'", p0, p1, p2);
  794. }
  795. /// <summary>
  796. /// A string like "Method '{0}' declared on type '{1}' cannot be called with instance of type '{2}'"
  797. /// </summary>
  798. internal static string InstanceAndMethodTypeMismatch(object p0, object p1, object p2) {
  799. return FormatString("Method '{0}' declared on type '{1}' cannot be called with instance of type '{2}'", p0, p1, p2);
  800. }
  801. /// <summary>
  802. /// A string like "Type {0} contains generic parameters"
  803. /// </summary>
  804. internal static string TypeContainsGenericParameters(object p0) {
  805. return FormatString("Type {0} contains generic parameters", p0);
  806. }
  807. /// <summary>
  808. /// A string like "Type {0} is a generic type definition"
  809. /// </summary>
  810. internal static string TypeIsGeneric(object p0) {
  811. return FormatString("Type {0} is a generic type definition", p0);
  812. }
  813. /// <summary>
  814. /// A string like "Type '{0}' does not have a default constructor"
  815. /// </summary>
  816. internal static string TypeMissingDefaultConstructor(object p0) {
  817. return FormatString("Type '{0}' does not have a default constructor", p0);
  818. }
  819. /// <summary>
  820. /// A string like "List initializers must contain at least one initializer"
  821. /// </summary>
  822. internal static string ListInitializerWithZeroMembers {
  823. get {
  824. return "List initializers must contain at least one initializer";
  825. }
  826. }
  827. /// <summary>
  828. /// A string like "Element initializer method must be named 'Add'"
  829. /// </summary>
  830. internal static string ElementInitializerMethodNotAdd {
  831. get {
  832. return "Element initializer method must be named 'Add'";
  833. }
  834. }
  835. /// <summary>
  836. /// A string like "Parameter '{0}' of element initializer method '{1}' must not be a pass by reference parameter"
  837. /// </summary>
  838. internal static string ElementInitializerMethodNoRefOutParam(object p0, object p1) {
  839. return FormatString("Parameter '{0}' of element initializer method '{1}' must not be a pass by reference parameter", p0, p1);
  840. }
  841. /// <summary>
  842. /// A string like "Element initializer method must have at least 1 parameter"
  843. /// </summary>
  844. internal static string ElementInitializerMethodWithZeroArgs {
  845. get {
  846. return "Element initializer method must have at least 1 parameter";
  847. }
  848. }
  849. /// <summary>
  850. /// A string like "Element initializer method must be an instance method"
  851. /// </summary>
  852. internal static string ElementInitializerMethodStatic {
  853. get {
  854. return "Element initializer method must be an instance method";
  855. }
  856. }
  857. /// <summary>
  858. /// A string like "Type '{0}' is not IEnumerable"
  859. /// </summary>
  860. internal static string TypeNotIEnumerable(object p0) {
  861. return FormatString("Type '{0}' is not IEnumerable", p0);
  862. }
  863. /// <summary>
  864. /// A string like "Type parameter is {0}. Expected a delegate."
  865. /// </summary>
  866. internal static string TypeParameterIsNotDelegate(object p0) {
  867. return FormatString("Type parameter is {0}. Expected a delegate.", p0);
  868. }
  869. /// <summary>
  870. /// A string like "Unexpected coalesce operator."
  871. /// </summary>
  872. internal static string UnexpectedCoalesceOperator {
  873. get {
  874. return "Unexpected coalesce operator.";
  875. }
  876. }
  877. /// <summary>
  878. /// A string like "Cannot cast from type '{0}' to type '{1}"
  879. /// </summary>
  880. internal static string InvalidCast(object p0, object p1) {
  881. return FormatString("Cannot cast from type '{0}' to type '{1}", p0, p1);
  882. }
  883. /// <summary>
  884. /// A string like "Unhandled binary: {0}"
  885. /// </summary>
  886. internal static string UnhandledBinary(object p0) {
  887. return FormatString("Unhandled binary: {0}", p0);
  888. }
  889. /// <summary>
  890. /// A string like "Unhandled binding "
  891. /// </summary>
  892. internal static string UnhandledBinding {
  893. get {
  894. return "Unhandled binding ";
  895. }
  896. }
  897. /// <summary>
  898. /// A string like "Unhandled Binding Type: {0}"
  899. /// </summary>
  900. internal static string UnhandledBindingType(object p0) {
  901. return FormatString("Unhandled Binding Type: {0}", p0);
  902. }
  903. /// <summary>
  904. /// A string like "Unhandled convert: {0}"
  905. /// </summary>
  906. internal static string UnhandledConvert(object p0) {
  907. return FormatString("Unhandled convert: {0}", p0);
  908. }
  909. /// <summary>
  910. /// A string like "Unhandled Expression Type: {0}"
  911. /// </summary>
  912. internal static string UnhandledExpressionType(object p0) {
  913. return FormatString("Unhandled Expression Type: {0}", p0);
  914. }
  915. /// <summary>
  916. /// A string like "Unhandled unary: {0}"
  917. /// </summary>
  918. internal static string UnhandledUnary(object p0) {
  919. return FormatString("Unhandled unary: {0}", p0);
  920. }
  921. /// <summary>
  922. /// A string like "Unknown binding type"
  923. /// </summary>
  924. internal static string UnknownBindingType {
  925. get {
  926. return "Unknown binding type";
  927. }
  928. }
  929. /// <summary>
  930. /// A string like "The user-defined operator method '{1}' for operator '{0}' must have identical parameter and return types."
  931. /// </summary>
  932. internal static string UserDefinedOpMustHaveConsistentTypes(object p0, object p1) {
  933. return FormatString("The user-defined operator method '{1}' for operator '{0}' must have identical parameter and return types.", p0, p1);
  934. }
  935. /// <summary>
  936. /// A string like "The user-defined operator method '{1}' for operator '{0}' must return the same type as its parameter or a derived type."
  937. /// </summary>
  938. internal static string UserDefinedOpMustHaveValidReturnType(object p0, object p1) {
  939. 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);
  940. }
  941. /// <summary>
  942. /// A string like "The user-defined operator method '{1}' for operator '{0}' must have associated boolean True and False operators."
  943. /// </summary>
  944. internal static string LogicalOperatorMustHaveBooleanOperators(object p0, object p1) {
  945. return FormatString("The user-defined operator method '{1}' for operator '{0}' must have associated boolean True and False operators.", p0, p1);
  946. }
  947. /// <summary>
  948. /// A string like "No method '{0}' exists on type '{1}'."
  949. /// </summary>
  950. internal static string MethodDoesNotExistOnType(object p0, object p1) {
  951. return FormatString("No method '{0}' exists on type '{1}'.", p0, p1);
  952. }
  953. /// <summary>
  954. /// A string like "No method '{0}' on type '{1}' is compatible with the supplied arguments."
  955. /// </summary>
  956. internal static string MethodWithArgsDoesNotExistOnType(object p0, object p1) {
  957. return FormatString("No method '{0}' on type '{1}' is compatible with the supplied arguments.", p0, p1);
  958. }
  959. /// <summary>
  960. /// 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. "
  961. /// </summary>
  962. internal static string GenericMethodWithArgsDoesNotExistOnType(object p0, object p1) {
  963. 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);
  964. }
  965. /// <summary>
  966. /// A string like "More than one method '{0}' on type '{1}' is compatible with the supplied arguments."
  967. /// </summary>
  968. internal static string MethodWithMoreThanOneMatch(object p0, object p1) {
  969. return FormatString("More than one method '{0}' on type '{1}' is compatible with the supplied arguments.", p0, p1);
  970. }
  971. /// <summary>
  972. /// A string like "More than one property '{0}' on type '{1}' is compatible with the supplied arguments."
  973. /// </summary>
  974. internal static string PropertyWithMoreThanOneMatch(object p0, object p1) {
  975. return FormatString("More than one property '{0}' on type '{1}' is compatible with the supplied arguments.", p0, p1);
  976. }
  977. /// <summary>
  978. /// A string like "An incorrect number of type args were specified for the declaration of a Func type."
  979. /// </summary>
  980. internal static string IncorrectNumberOfTypeArgsForFunc {
  981. get {
  982. return "An incorrect number of type args were specified for the declaration of a Func type.";
  983. }
  984. }
  985. /// <summary>
  986. /// A string like "An incorrect number of type args were specified for the declaration of an Action type."
  987. /// </summary>
  988. internal static string IncorrectNumberOfTypeArgsForAction {
  989. get {
  990. return "An incorrect number of type args were specified for the declaration of an Action type.";
  991. }
  992. }
  993. /// <summary>
  994. /// A string like "Argument type cannot be System.Void."
  995. /// </summary>
  996. internal static string ArgumentCannotBeOfTypeVoid {
  997. get {
  998. return "Argument type cannot be System.Void.";
  999. }
  1000. }
  1001. /// <summary>
  1002. /// A string like "More than one key matching '{0}' was found in the ExpandoObject."
  1003. /// </summary>
  1004. internal static string AmbiguousMatchInExpandoObject(object p0) {
  1005. return FormatString("More than one key matching '{0}' was found in the ExpandoObject.", p0);
  1006. }
  1007. /// <summary>
  1008. /// A string like "An element with the same key '{0}' already exists in the ExpandoObject."
  1009. /// </summary>
  1010. internal static string SameKeyExistsInExpando(object p0) {
  1011. return FormatString("An element with the same key '{0}' already exists in the ExpandoObject.", p0);
  1012. }
  1013. /// <summary>
  1014. /// A string like "The specified key '{0}' does not exist in the ExpandoObject."
  1015. /// </summary>
  1016. internal static string KeyDoesNotExistInExpando(object p0) {
  1017. return FormatString("The specified key '{0}' does not exist in the ExpandoObject.", p0);
  1018. }
  1019. /// <summary>
  1020. /// A string like "No or Invalid rule produced"
  1021. /// </summary>
  1022. internal static string NoOrInvalidRuleProduced {
  1023. get {
  1024. return "No or Invalid rule produced";
  1025. }
  1026. }
  1027. /// <summary>
  1028. /// A string like "First argument of delegate must be CallSite"
  1029. /// </summary>
  1030. internal static string FirstArgumentMustBeCallSite {
  1031. get {
  1032. return "First argument of delegate must be CallSite";
  1033. }
  1034. }
  1035. /// <summary>
  1036. /// A string like "Bind cannot return null."
  1037. /// </summary>
  1038. internal static string BindingCannotBeNull {
  1039. get {
  1040. return "Bind cannot return null.";
  1041. }
  1042. }
  1043. /// <summary>
  1044. /// A string like "Invalid operation: '{0}'"
  1045. /// </summary>
  1046. internal static string InvalidOperation(object p0) {
  1047. return FormatString("Invalid operation: '{0}'", p0);
  1048. }
  1049. /// <summary>
  1050. /// A string like "{0} must be greater than or equal to {1}"
  1051. /// </summary>
  1052. internal static string OutOfRange(object p0, object p1) {
  1053. return FormatString("{0} must be greater than or equal to {1}", p0, p1);
  1054. }
  1055. /// <summary>
  1056. /// A string like "Queue empty."
  1057. /// </summary>
  1058. internal static string QueueEmpty {
  1059. get {
  1060. return "Queue empty.";
  1061. }
  1062. }
  1063. /// <summary>
  1064. /// A string like "Cannot redefine label '{0}' in an inner block."
  1065. /// </summary>
  1066. internal static string LabelTargetAlreadyDefined(object p0) {
  1067. return FormatString("Cannot redefine label '{0}' in an inner block.", p0);
  1068. }
  1069. /// <summary>
  1070. /// A string like "Cannot jump to undefined label '{0}'."
  1071. /// </summary>
  1072. internal static string LabelTargetUndefined(object p0) {
  1073. return FormatString("Cannot jump to undefined label '{0}'.", p0);
  1074. }
  1075. /// <summary>
  1076. /// A string like "Control cannot leave a finally block."
  1077. /// </summary>
  1078. internal static string ControlCannotLeaveFinally {
  1079. get {
  1080. return "Control cannot leave a finally block.";
  1081. }
  1082. }
  1083. /// <summary>
  1084. /// A string like "Control cannot leave a filter test."
  1085. /// </summary>
  1086. internal static string ControlCannotLeaveFilterTest {
  1087. get {
  1088. return "Control cannot leave a filter test.";
  1089. }
  1090. }
  1091. /// <summary>
  1092. /// A string like "Cannot jump to ambiguous label '{0}'."
  1093. /// </summary>
  1094. internal static string AmbiguousJump(object p0) {
  1095. return FormatString("Cannot jump to ambiguous label '{0}'.", p0);
  1096. }
  1097. /// <summary>
  1098. /// A string like "Control cannot enter a try block."
  1099. /// </summary>
  1100. internal static string ControlCannotEnterTry {
  1101. get {
  1102. return "Control cannot enter a try block.";
  1103. }
  1104. }
  1105. /// <summary>
  1106. /// A string like "Control cannot enter an expression--only statements can be jumped into."
  1107. /// </summary>

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