PageRenderTime 62ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 1ms

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

https://bitbucket.org/stefanrusek/xronos
C# | 2484 lines | 1162 code | 333 blank | 989 comment | 0 complexity | 6d269537cf95ee8fdd5af83c1094224c 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 Microsoft Public License. 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 Microsoft Public License, 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 Microsoft Public License.
  10. *
  11. * You must not remove this notice, or any other, from this software.
  12. *
  13. *
  14. * ***************************************************************************/
  15. using System; using Microsoft;
  16. #if CODEPLEX_40
  17. namespace System.Linq.Expressions {
  18. #else
  19. namespace Microsoft.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 method {0}."
  383. /// </summary>
  384. internal static string ExtensionNodeMustOverrideMethod(object p0) {
  385. return FormatString("Extension node must override method {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 "Cannot convert the result type '{0}' of the dynamic binding to the result type '{1}' expected by the call site."
  407. /// </summary>
  408. internal static string CannotConvertDynamicResult(object p0, object p1) {
  409. return FormatString("Cannot convert the result type '{0}' of the dynamic binding to the result type '{1}' expected by the call site.", p0, p1);
  410. }
  411. /// <summary>
  412. /// A string like "The unary operator {0} is not defined for the type '{1}'."
  413. /// </summary>
  414. internal static string UnaryOperatorNotDefined(object p0, object p1) {
  415. return FormatString("The unary operator {0} is not defined for the type '{1}'.", p0, p1);
  416. }
  417. /// <summary>
  418. /// A string like "The binary operator {0} is not defined for the types '{1}' and '{2}'."
  419. /// </summary>
  420. internal static string BinaryOperatorNotDefined(object p0, object p1, object p2) {
  421. return FormatString("The binary operator {0} is not defined for the types '{1}' and '{2}'.", p0, p1, p2);
  422. }
  423. /// <summary>
  424. /// A string like "Reference equality is not defined for the types '{0}' and '{1}'."
  425. /// </summary>
  426. internal static string ReferenceEqualityNotDefined(object p0, object p1) {
  427. return FormatString("Reference equality is not defined for the types '{0}' and '{1}'.", p0, p1);
  428. }
  429. /// <summary>
  430. /// A string like "The operands for operator '{0}' do not match the parameters of method '{1}'."
  431. /// </summary>
  432. internal static string OperandTypesDoNotMatchParameters(object p0, object p1) {
  433. return FormatString("The operands for operator '{0}' do not match the parameters of method '{1}'.", p0, p1);
  434. }
  435. /// <summary>
  436. /// A string like "The return type of overload method for operator '{0}' does not match the parameter type of conversion method '{1}'."
  437. /// </summary>
  438. internal static string OverloadOperatorTypeDoesNotMatchConversionType(object p0, object p1) {
  439. return FormatString("The return type of overload method for operator '{0}' does not match the parameter type of conversion method '{1}'.", p0, p1);
  440. }
  441. /// <summary>
  442. /// A string like "Conversion is not supported for arithmetic types without operator overloading."
  443. /// </summary>
  444. internal static string ConversionIsNotSupportedForArithmeticTypes {
  445. get {
  446. return "Conversion is not supported for arithmetic types without operator overloading.";
  447. }
  448. }
  449. /// <summary>
  450. /// A string like "Argument must be array"
  451. /// </summary>
  452. internal static string ArgumentMustBeArray {
  453. get {
  454. return "Argument must be array";
  455. }
  456. }
  457. /// <summary>
  458. /// A string like "Argument must be boolean"
  459. /// </summary>
  460. internal static string ArgumentMustBeBoolean {
  461. get {
  462. return "Argument must be boolean";
  463. }
  464. }
  465. /// <summary>
  466. /// A string like "The user-defined equality method '{0}' must return a boolean value."
  467. /// </summary>
  468. internal static string EqualityMustReturnBoolean(object p0) {
  469. return FormatString("The user-defined equality method '{0}' must return a boolean value.", p0);
  470. }
  471. /// <summary>
  472. /// A string like "Argument must be either a FieldInfo or PropertyInfo"
  473. /// </summary>
  474. internal static string ArgumentMustBeFieldInfoOrPropertInfo {
  475. get {
  476. return "Argument must be either a FieldInfo or PropertyInfo";
  477. }
  478. }
  479. /// <summary>
  480. /// A string like "Argument must be either a FieldInfo, PropertyInfo or MethodInfo"
  481. /// </summary>
  482. internal static string ArgumentMustBeFieldInfoOrPropertInfoOrMethod {
  483. get {
  484. return "Argument must be either a FieldInfo, PropertyInfo or MethodInfo";
  485. }
  486. }
  487. /// <summary>
  488. /// A string like "Argument must be an instance member"
  489. /// </summary>
  490. internal static string ArgumentMustBeInstanceMember {
  491. get {
  492. return "Argument must be an instance member";
  493. }
  494. }
  495. /// <summary>
  496. /// A string like "Argument must be of an integer type"
  497. /// </summary>
  498. internal static string ArgumentMustBeInteger {
  499. get {
  500. return "Argument must be of an integer type";
  501. }
  502. }
  503. /// <summary>
  504. /// A string like "Argument for array index must be of type Int32"
  505. /// </summary>
  506. internal static string ArgumentMustBeArrayIndexType {
  507. get {
  508. return "Argument for array index must be of type Int32";
  509. }
  510. }
  511. /// <summary>
  512. /// A string like "Argument must be single dimensional array type"
  513. /// </summary>
  514. internal static string ArgumentMustBeSingleDimensionalArrayType {
  515. get {
  516. return "Argument must be single dimensional array type";
  517. }
  518. }
  519. /// <summary>
  520. /// A string like "Argument types do not match"
  521. /// </summary>
  522. internal static string ArgumentTypesMustMatch {
  523. get {
  524. return "Argument types do not match";
  525. }
  526. }
  527. /// <summary>
  528. /// A string like "Cannot auto initialize elements of value type through property '{0}', use assignment instead"
  529. /// </summary>
  530. internal static string CannotAutoInitializeValueTypeElementThroughProperty(object p0) {
  531. return FormatString("Cannot auto initialize elements of value type through property '{0}', use assignment instead", p0);
  532. }
  533. /// <summary>
  534. /// A string like "Cannot auto initialize members of value type through property '{0}', use assignment instead"
  535. /// </summary>
  536. internal static string CannotAutoInitializeValueTypeMemberThroughProperty(object p0) {
  537. return FormatString("Cannot auto initialize members of value type through property '{0}', use assignment instead", p0);
  538. }
  539. /// <summary>
  540. /// A string like "The type used in TypeAs Expression must be of reference or nullable type, {0} is neither"
  541. /// </summary>
  542. internal static string IncorrectTypeForTypeAs(object p0) {
  543. return FormatString("The type used in TypeAs Expression must be of reference or nullable type, {0} is neither", p0);
  544. }
  545. /// <summary>
  546. /// A string like "Coalesce used with type that cannot be null"
  547. /// </summary>
  548. internal static string CoalesceUsedOnNonNullType {
  549. get {
  550. return "Coalesce used with type that cannot be null";
  551. }
  552. }
  553. /// <summary>
  554. /// A string like "An expression of type '{0}' cannot be used to initialize an array of type '{1}'"
  555. /// </summary>
  556. internal static string ExpressionTypeCannotInitializeArrayType(object p0, object p1) {
  557. return FormatString("An expression of type '{0}' cannot be used to initialize an array of type '{1}'", p0, p1);
  558. }
  559. /// <summary>
  560. /// A string like "Expression of type '{0}' cannot be used for constructor parameter of type '{1}'"
  561. /// </summary>
  562. internal static string ExpressionTypeDoesNotMatchConstructorParameter(object p0, object p1) {
  563. return FormatString("Expression of type '{0}' cannot be used for constructor parameter of type '{1}'", p0, p1);
  564. }
  565. /// <summary>
  566. /// A string like " Argument type '{0}' does not match the corresponding member type '{1}'"
  567. /// </summary>
  568. internal static string ArgumentTypeDoesNotMatchMember(object p0, object p1) {
  569. return FormatString(" Argument type '{0}' does not match the corresponding member type '{1}'", p0, p1);
  570. }
  571. /// <summary>
  572. /// A string like " The member '{0}' is not declared on type '{1}' being created"
  573. /// </summary>
  574. internal static string ArgumentMemberNotDeclOnType(object p0, object p1) {
  575. return FormatString(" The member '{0}' is not declared on type '{1}' being created", p0, p1);
  576. }
  577. /// <summary>
  578. /// A string like "Expression of type '{0}' cannot be used for parameter of type '{1}' of method '{2}'"
  579. /// </summary>
  580. internal static string ExpressionTypeDoesNotMatchMethodParameter(object p0, object p1, object p2) {
  581. return FormatString("Expression of type '{0}' cannot be used for parameter of type '{1}' of method '{2}'", p0, p1, p2);
  582. }
  583. /// <summary>
  584. /// A string like "Expression of type '{0}' cannot be used for parameter of type '{1}'"
  585. /// </summary>
  586. internal static string ExpressionTypeDoesNotMatchParameter(object p0, object p1) {
  587. return FormatString("Expression of type '{0}' cannot be used for parameter of type '{1}'", p0, p1);
  588. }
  589. /// <summary>
  590. /// A string like "Expression of type '{0}' cannot be used for return type '{1}'"
  591. /// </summary>
  592. internal static string ExpressionTypeDoesNotMatchReturn(object p0, object p1) {
  593. return FormatString("Expression of type '{0}' cannot be used for return type '{1}'", p0, p1);
  594. }
  595. /// <summary>
  596. /// A string like "Expression of type '{0}' cannot be used for assignment to type '{1}'"
  597. /// </summary>
  598. internal static string ExpressionTypeDoesNotMatchAssignment(object p0, object p1) {
  599. return FormatString("Expression of type '{0}' cannot be used for assignment to type '{1}'", p0, p1);
  600. }
  601. /// <summary>
  602. /// A string like "Expression of type '{0}' cannot be used for label of type '{1}'"
  603. /// </summary>
  604. internal static string ExpressionTypeDoesNotMatchLabel(object p0, object p1) {
  605. return FormatString("Expression of type '{0}' cannot be used for label of type '{1}'", p0, p1);
  606. }
  607. /// <summary>
  608. /// A string like "Expression of type '{0}' cannot be invoked"
  609. /// </summary>
  610. internal static string ExpressionTypeNotInvocable(object p0) {
  611. return FormatString("Expression of type '{0}' cannot be invoked", p0);
  612. }
  613. /// <summary>
  614. /// A string like "Field '{0}' is not defined for type '{1}'"
  615. /// </summary>
  616. internal static string FieldNotDefinedForType(object p0, object p1) {
  617. return FormatString("Field '{0}' is not defined for type '{1}'", p0, p1);
  618. }
  619. /// <summary>
  620. /// A string like "Instance field '{0}' is not defined for type '{1}'"
  621. /// </summary>
  622. internal static string InstanceFieldNotDefinedForType(object p0, object p1) {
  623. return FormatString("Instance field '{0}' is not defined for type '{1}'", p0, p1);
  624. }
  625. /// <summary>
  626. /// A string like "Field '{0}.{1}' is not defined for type '{2}'"
  627. /// </summary>
  628. internal static string FieldInfoNotDefinedForType(object p0, object p1, object p2) {
  629. return FormatString("Field '{0}.{1}' is not defined for type '{2}'", p0, p1, p2);
  630. }
  631. /// <summary>
  632. /// A string like "Incorrect number of indexes"
  633. /// </summary>
  634. internal static string IncorrectNumberOfIndexes {
  635. get {
  636. return "Incorrect number of indexes";
  637. }
  638. }
  639. /// <summary>
  640. /// A string like "Incorrect number of arguments supplied for lambda invocation"
  641. /// </summary>
  642. internal static string IncorrectNumberOfLambdaArguments {
  643. get {
  644. return "Incorrect number of arguments supplied for lambda invocation";
  645. }
  646. }
  647. /// <summary>
  648. /// A string like "Incorrect number of parameters supplied for lambda declaration"
  649. /// </summary>
  650. internal static string IncorrectNumberOfLambdaDeclarationParameters {
  651. get {
  652. return "Incorrect number of parameters supplied for lambda declaration";
  653. }
  654. }
  655. /// <summary>
  656. /// A string like "Incorrect number of arguments supplied for call to method '{0}'"
  657. /// </summary>
  658. internal static string IncorrectNumberOfMethodCallArguments(object p0) {
  659. return FormatString("Incorrect number of arguments supplied for call to method '{0}'", p0);
  660. }
  661. /// <summary>
  662. /// A string like "Incorrect number of arguments for constructor"
  663. /// </summary>
  664. internal static string IncorrectNumberOfConstructorArguments {
  665. get {
  666. return "Incorrect number of arguments for constructor";
  667. }
  668. }
  669. /// <summary>
  670. /// A string like " Incorrect number of members for constructor"
  671. /// </summary>
  672. internal static string IncorrectNumberOfMembersForGivenConstructor {
  673. get {
  674. return " Incorrect number of members for constructor";
  675. }
  676. }
  677. /// <summary>
  678. /// A string like "Incorrect number of arguments for the given members "
  679. /// </summary>
  680. internal static string IncorrectNumberOfArgumentsForMembers {
  681. get {
  682. return "Incorrect number of arguments for the given members ";
  683. }
  684. }
  685. /// <summary>
  686. /// A string like "Lambda type parameter must be derived from System.Delegate"
  687. /// </summary>
  688. internal static string LambdaTypeMustBeDerivedFromSystemDelegate {
  689. get {
  690. return "Lambda type parameter must be derived from System.Delegate";
  691. }
  692. }
  693. /// <summary>
  694. /// A string like "Member '{0}' not field or property"
  695. /// </summary>
  696. internal static string MemberNotFieldOrProperty(object p0) {
  697. return FormatString("Member '{0}' not field or property", p0);
  698. }
  699. /// <summary>
  700. /// A string like "Method {0} contains generic parameters"
  701. /// </summary>
  702. internal static string MethodContainsGenericParameters(object p0) {
  703. return FormatString("Method {0} contains generic parameters", p0);
  704. }
  705. /// <summary>
  706. /// A string like "Method {0} is a generic method definition"
  707. /// </summary>
  708. internal static string MethodIsGeneric(object p0) {
  709. return FormatString("Method {0} is a generic method definition", p0);
  710. }
  711. /// <summary>
  712. /// A string like "The method '{0}.{1}' is not a property accessor"
  713. /// </summary>
  714. internal static string MethodNotPropertyAccessor(object p0, object p1) {
  715. return FormatString("The method '{0}.{1}' is not a property accessor", p0, p1);
  716. }
  717. /// <summary>
  718. /// A string like "The property '{0}' has no 'get' accessor"
  719. /// </summary>
  720. internal static string PropertyDoesNotHaveGetter(object p0) {
  721. return FormatString("The property '{0}' has no 'get' accessor", p0);
  722. }
  723. /// <summary>
  724. /// A string like "The property '{0}' has no 'set' accessor"
  725. /// </summary>
  726. internal static string PropertyDoesNotHaveSetter(object p0) {
  727. return FormatString("The property '{0}' has no 'set' accessor", p0);
  728. }
  729. /// <summary>
  730. /// A string like "The property '{0}' has no 'get' or 'set' accessors"
  731. /// </summary>
  732. internal static string PropertyDoesNotHaveAccessor(object p0) {
  733. return FormatString("The property '{0}' has no 'get' or 'set' accessors", p0);
  734. }
  735. /// <summary>
  736. /// A string like "'{0}' is not a member of type '{1}'"
  737. /// </summary>
  738. internal static string NotAMemberOfType(object p0, object p1) {
  739. return FormatString("'{0}' is not a member of type '{1}'", p0, p1);
  740. }
  741. /// <summary>
  742. /// A string like "The operator '{0}' is not implemented for type '{1}'"
  743. /// </summary>
  744. internal static string OperatorNotImplementedForType(object p0, object p1) {
  745. return FormatString("The operator '{0}' is not implemented for type '{1}'", p0, p1);
  746. }
  747. /// <summary>
  748. /// A string like "ParameterExpression of type '{0}' cannot be used for delegate parameter of type '{1}'"
  749. /// </summary>
  750. internal static string ParameterExpressionNotValidAsDelegate(object p0, object p1) {
  751. return FormatString("ParameterExpression of type '{0}' cannot be used for delegate parameter of type '{1}'", p0, p1);
  752. }
  753. /// <summary>
  754. /// A string like "Property '{0}' is not defined for type '{1}'"
  755. /// </summary>
  756. internal static string PropertyNotDefinedForType(object p0, object p1) {
  757. return FormatString("Property '{0}' is not defined for type '{1}'", p0, p1);
  758. }
  759. /// <summary>
  760. /// A string like "Instance property '{0}' is not defined for type '{1}'"
  761. /// </summary>
  762. internal static string InstancePropertyNotDefinedForType(object p0, object p1) {
  763. return FormatString("Instance property '{0}' is not defined for type '{1}'", p0, p1);
  764. }
  765. /// <summary>
  766. /// A string like "Instance property '{0}' that takes no argument is not defined for type '{1}'"
  767. /// </summary>
  768. internal static string InstancePropertyWithoutParameterNotDefinedForType(object p0, object p1) {
  769. return FormatString("Instance property '{0}' that takes no argument is not defined for type '{1}'", p0, p1);
  770. }
  771. /// <summary>
  772. /// A string like "Instance property '{0}{1}' is not defined for type '{2}'"
  773. /// </summary>
  774. internal static string InstancePropertyWithSpecifiedParametersNotDefinedForType(object p0, object p1, object p2) {
  775. return FormatString("Instance property '{0}{1}' is not defined for type '{2}'", p0, p1, p2);
  776. }
  777. /// <summary>
  778. /// A string like "Method '{0}' is not defined for type '{1}'"
  779. /// </summary>
  780. internal static string MethodNotDefinedForType(object p0, object p1) {
  781. return FormatString("Method '{0}' is not defined for type '{1}'", p0, p1);
  782. }
  783. /// <summary>
  784. /// A string like "Type {0} contains generic parameters"
  785. /// </summary>
  786. internal static string TypeContainsGenericParameters(object p0) {
  787. return FormatString("Type {0} contains generic parameters", p0);
  788. }
  789. /// <summary>
  790. /// A string like "Type {0} is a generic type definition"
  791. /// </summary>
  792. internal static string TypeIsGeneric(object p0) {
  793. return FormatString("Type {0} is a generic type definition", p0);
  794. }
  795. /// <summary>
  796. /// A string like "Type '{0}' does not have a default constructor"
  797. /// </summary>
  798. internal static string TypeMissingDefaultConstructor(object p0) {
  799. return FormatString("Type '{0}' does not have a default constructor", p0);
  800. }
  801. /// <summary>
  802. /// A string like "List initializers must contain at least one initializer"
  803. /// </summary>
  804. internal static string ListInitializerWithZeroMembers {
  805. get {
  806. return "List initializers must contain at least one initializer";
  807. }
  808. }
  809. /// <summary>
  810. /// A string like "Element initializer method must be named 'Add'"
  811. /// </summary>
  812. internal static string ElementInitializerMethodNotAdd {
  813. get {
  814. return "Element initializer method must be named 'Add'";
  815. }
  816. }
  817. /// <summary>
  818. /// A string like "Parameter '{0}' of element initializer method '{1}' must not be a pass by reference parameter"
  819. /// </summary>
  820. internal static string ElementInitializerMethodNoRefOutParam(object p0, object p1) {
  821. return FormatString("Parameter '{0}' of element initializer method '{1}' must not be a pass by reference parameter", p0, p1);
  822. }
  823. /// <summary>
  824. /// A string like "Element initializer method must have at least 1 parameter"
  825. /// </summary>
  826. internal static string ElementInitializerMethodWithZeroArgs {
  827. get {
  828. return "Element initializer method must have at least 1 parameter";
  829. }
  830. }
  831. /// <summary>
  832. /// A string like "Element initializer method must be an instance method"
  833. /// </summary>
  834. internal static string ElementInitializerMethodStatic {
  835. get {
  836. return "Element initializer method must be an instance method";
  837. }
  838. }
  839. /// <summary>
  840. /// A string like "Type '{0}' is not IEnumerable"
  841. /// </summary>
  842. internal static string TypeNotIEnumerable(object p0) {
  843. return FormatString("Type '{0}' is not IEnumerable", p0);
  844. }
  845. /// <summary>
  846. /// A string like "Type parameter is {0}. Expected a delegate."
  847. /// </summary>
  848. internal static string TypeParameterIsNotDelegate(object p0) {
  849. return FormatString("Type parameter is {0}. Expected a delegate.", p0);
  850. }
  851. /// <summary>
  852. /// A string like "Unexpected coalesce operator."
  853. /// </summary>
  854. internal static string UnexpectedCoalesceOperator {
  855. get {
  856. return "Unexpected coalesce operator.";
  857. }
  858. }
  859. /// <summary>
  860. /// A string like "Cannot cast from type '{0}' to type '{1}"
  861. /// </summary>
  862. internal static string InvalidCast(object p0, object p1) {
  863. return FormatString("Cannot cast from type '{0}' to type '{1}", p0, p1);
  864. }
  865. /// <summary>
  866. /// A string like "Unhandled binary: {0}"
  867. /// </summary>
  868. internal static string UnhandledBinary(object p0) {
  869. return FormatString("Unhandled binary: {0}", p0);
  870. }
  871. /// <summary>
  872. /// A string like "Unhandled binding "
  873. /// </summary>
  874. internal static string UnhandledBinding {
  875. get {
  876. return "Unhandled binding ";
  877. }
  878. }
  879. /// <summary>
  880. /// A string like "Unhandled Binding Type: {0}"
  881. /// </summary>
  882. internal static string UnhandledBindingType(object p0) {
  883. return FormatString("Unhandled Binding Type: {0}", p0);
  884. }
  885. /// <summary>
  886. /// A string like "Unhandled convert: {0}"
  887. /// </summary>
  888. internal static string UnhandledConvert(object p0) {
  889. return FormatString("Unhandled convert: {0}", p0);
  890. }
  891. /// <summary>
  892. /// A string like "Unhandled Expression Type: {0}"
  893. /// </summary>
  894. internal static string UnhandledExpressionType(object p0) {
  895. return FormatString("Unhandled Expression Type: {0}", p0);
  896. }
  897. /// <summary>
  898. /// A string like "Unhandled unary: {0}"
  899. /// </summary>
  900. internal static string UnhandledUnary(object p0) {
  901. return FormatString("Unhandled unary: {0}", p0);
  902. }
  903. /// <summary>
  904. /// A string like "Unknown binding type"
  905. /// </summary>
  906. internal static string UnknownBindingType {
  907. get {
  908. return "Unknown binding type";
  909. }
  910. }
  911. /// <summary>
  912. /// A string like "The user-defined operator method '{1}' for operator '{0}' must have identical parameter and return types."
  913. /// </summary>
  914. internal static string UserDefinedOpMustHaveConsistentTypes(object p0, object p1) {
  915. return FormatString("The user-defined operator method '{1}' for operator '{0}' must have identical parameter and return types.", p0, p1);
  916. }
  917. /// <summary>
  918. /// A string like "The user-defined operator method '{1}' for operator '{0}' must return the same type as its parameter or a derived type."
  919. /// </summary>
  920. internal static string UserDefinedOpMustHaveValidReturnType(object p0, object p1) {
  921. 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);
  922. }
  923. /// <summary>
  924. /// A string like "The user-defined operator method '{1}' for operator '{0}' must have associated boolean True and False operators."
  925. /// </summary>
  926. internal static string LogicalOperatorMustHaveBooleanOperators(object p0, object p1) {
  927. return FormatString("The user-defined operator method '{1}' for operator '{0}' must have associated boolean True and False operators.", p0, p1);
  928. }
  929. /// <summary>
  930. /// A string like "No method '{0}' exists on type '{1}'."
  931. /// </summary>
  932. internal static string MethodDoesNotExistOnType(object p0, object p1) {
  933. return FormatString("No method '{0}' exists on type '{1}'.", p0, p1);
  934. }
  935. /// <summary>
  936. /// A string like "No method '{0}' on type '{1}' is compatible with the supplied arguments."
  937. /// </summary>
  938. internal static string MethodWithArgsDoesNotExistOnType(object p0, object p1) {
  939. return FormatString("No method '{0}' on type '{1}' is compatible with the supplied arguments.", p0, p1);
  940. }
  941. /// <summary>
  942. /// 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. "
  943. /// </summary>
  944. internal static string GenericMethodWithArgsDoesNotExistOnType(object p0, object p1) {
  945. 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);
  946. }
  947. /// <summary>
  948. /// A string like "More than one method '{0}' on type '{1}' is compatible with the supplied arguments."
  949. /// </summary>
  950. internal static string MethodWithMoreThanOneMatch(object p0, object p1) {
  951. return FormatString("More than one method '{0}' on type '{1}' is compatible with the supplied arguments.", p0, p1);
  952. }
  953. /// <summary>
  954. /// A string like "More than one property '{0}' on type '{1}' is compatible with the supplied arguments."
  955. /// </summary>
  956. internal static string PropertyWithMoreThanOneMatch(object p0, object p1) {
  957. return FormatString("More than one property '{0}' on type '{1}' is compatible with the supplied arguments.", p0, p1);
  958. }
  959. /// <summary>
  960. /// A string like "An incorrect number of type args were specified for the declaration of a Func type."
  961. /// </summary>
  962. internal static string IncorrectNumberOfTypeArgsForFunc {
  963. get {
  964. return "An incorrect number of type args were specified for the declaration of a Func type.";
  965. }
  966. }
  967. /// <summary>
  968. /// A string like "An incorrect number of type args were specified for the declaration of an Action type."
  969. /// </summary>
  970. internal static string IncorrectNumberOfTypeArgsForAction {
  971. get {
  972. return "An incorrect number of type args were specified for the declaration of an Action type.";
  973. }
  974. }
  975. /// <summary>
  976. /// A string like "Argument type cannot be System.Void."
  977. /// </summary>
  978. internal static string ArgumentCannotBeOfTypeVoid {
  979. get {
  980. return "Argument type cannot be System.Void.";
  981. }
  982. }
  983. /// <summary>
  984. /// A string like "More than one matching member is found in the ExpandoObject."
  985. /// </summary>
  986. internal static string AmbiguousMatchInExpandoObject {
  987. get {
  988. return "More than one matching member is found in the ExpandoObject.";
  989. }
  990. }
  991. /// <summary>
  992. /// A string like "An element with the same key '{0}' already exists in the ExpandoObject."
  993. /// </summary>
  994. internal static string SameKeyExistsInExpando(object p0) {
  995. return FormatString("An element with the same key '{0}' already exists in the ExpandoObject.", p0);
  996. }
  997. /// <summary>
  998. /// A string like "The specified key '{0}' does not exist in the ExpandoObject."
  999. /// </summary>
  1000. internal static string KeyDoesNotExistInExpando(object p0) {
  1001. return FormatString("The specified key '{0}' does not exist in the ExpandoObject.", p0);
  1002. }
  1003. /// <summary>
  1004. /// A string like "No or Invalid rule produced"
  1005. /// </summary>
  1006. internal static string NoOrInvalidRuleProduced {
  1007. get {
  1008. return "No or Invalid rule produced";
  1009. }
  1010. }
  1011. /// <summary>
  1012. /// A string like "First argument of delegate must be CallSite"
  1013. /// </summary>
  1014. internal static string FirstArgumentMustBeCallSite {
  1015. get {
  1016. return "First argument of delegate must be CallSite";
  1017. }
  1018. }
  1019. /// <summary>
  1020. /// A string like "Bind cannot return null."
  1021. /// </summary>
  1022. internal static string BindingCannotBeNull {
  1023. get {
  1024. return "Bind cannot return null.";
  1025. }
  1026. }
  1027. /// <summary>
  1028. /// A string like "Invalid operation: '{0}'"
  1029. /// </summary>
  1030. internal static string InvalidOperation(object p0) {
  1031. return FormatString("Invalid operation: '{0}'", p0);
  1032. }
  1033. /// <summary>
  1034. /// A string like "{0} must be greater than or equal to {1}"
  1035. /// </summary>
  1036. internal static string OutOfRange(object p0, object p1) {
  1037. return FormatString("{0} must be greater than or equal to {1}", p0, p1);
  1038. }
  1039. /// <summary>
  1040. /// A string like "Queue empty."
  1041. /// </summary>
  1042. internal static string QueueEmpty {
  1043. get {
  1044. return "Queue empty.";
  1045. }
  1046. }
  1047. /// <summary>
  1048. /// A string like "Cannot redefine label '{0}' in an inner block."
  1049. /// </summary>
  1050. internal static string LabelTargetAlreadyDefined(object p0) {
  1051. return FormatString("Cannot redefine label '{0}' in an inner block.", p0);
  1052. }
  1053. /// <summary>
  1054. /// A string like "Cannot jump to undefined label '{0}'."
  1055. /// </summary>
  1056. internal static string LabelTargetUndefined(object p0) {
  1057. return FormatString("Cannot jump to undefined label '{0}'.", p0);
  1058. }
  1059. /// <summary>
  1060. /// A string like "Control cannot leave a finally block."
  1061. /// </summary>
  1062. internal static string ControlCannotLeaveFinally {
  1063. get {
  1064. return "Control cannot leave a finally block.";
  1065. }
  1066. }
  1067. /// <summary>
  1068. /// A string like "Control cannot leave a filter test."
  1069. /// </summary>
  1070. internal static string ControlCannotLeaveFilterTest {
  1071. get {
  1072. return "Control cannot leave a filter test.";
  1073. }
  1074. }
  1075. /// <summary>
  1076. /// A string like "Cannot jump to ambiguous label '{0}'."
  1077. /// </summary>
  1078. internal static string AmbiguousJump(object p0) {
  1079. return FormatString("Cannot jump to ambiguous label '{0}'.", p0);
  1080. }
  1081. /// <summary>
  1082. /// A string like "Control cannot enter a try block."
  1083. /// </summary>
  1084. internal static string ControlCannotEnterTry {
  1085. get {
  1086. return "Control cannot enter a try block.";
  1087. }
  1088. }
  1089. /// <summary>
  1090. /// A string like "Control cannot enter an expression--only statements can be jumped into."
  1091. /// </summary>
  1092. internal static string ControlCannotEnterExpression {
  1093. get {
  1094. return "Control cannot enter an expression--only statements can be jumped into.";
  1095. }
  1096. }
  1097. /// <summary>
  1098. /// A string like "Cannot jump to non-local label '{0}' with a value. Only jumps to labels defined in outer blocks can pass values."
  1099. /// </summary>
  1100. internal static string NonLocalJumpWithValue(object p0) {
  1101. r

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