InternalSR.cs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. namespace System.Runtime {
  2. internal static class InternalSR {
  3. public static string ArgumentNullOrEmpty(string paramName)
  4. {
  5. return string.Format ("{0} is null or empty");
  6. }
  7. public static string AsyncEventArgsCompletedTwice(Type t)
  8. {
  9. return string.Format ("AsyncEventArgs completed twice for {0}", t);
  10. }
  11. public static string AsyncEventArgsCompletionPending(Type t)
  12. {
  13. return string.Format ("AsyncEventArgs completion pending for {0}", t);
  14. }
  15. public static string BufferAllocationFailed(int size)
  16. {
  17. return string.Format ("Buffer allocation of size {0} failed", size);
  18. }
  19. public static string BufferedOutputStreamQuotaExceeded(int maxSizeQuota)
  20. {
  21. return string.Format ("Buffered output stream quota exceeded (maxSizeQuota={0})", maxSizeQuota);
  22. }
  23. public static string CannotConvertObject(object source, Type t)
  24. {
  25. return string.Format ("Cannot convert object {0} to {1}", source, t);
  26. }
  27. public static string EtwAPIMaxStringCountExceeded(object max)
  28. {
  29. return string.Format ("ETW API max string count exceeded {0}", max);
  30. }
  31. public static string EtwMaxNumberArgumentsExceeded(object max)
  32. {
  33. return string.Format ("ETW max number arguments exceeded {0}", max);
  34. }
  35. public static string EtwRegistrationFailed(object arg)
  36. {
  37. return string.Format ("ETW registration failed {0}", arg);
  38. }
  39. public static string FailFastMessage(string description)
  40. {
  41. return string.Format ("Fail fast: {0}", description);
  42. }
  43. public static string InvalidAsyncResultImplementation(Type t)
  44. {
  45. return string.Format ("Invalid AsyncResult implementation: {0}", t);
  46. }
  47. public static string LockTimeoutExceptionMessage (object timeout)
  48. {
  49. return string.Format ("Lock timeout {0}", timeout);
  50. }
  51. public static string ShipAssertExceptionMessage(object description)
  52. {
  53. return string.Format ("Ship assert exception {0}", description);
  54. }
  55. public static string TaskTimedOutError (object timeout)
  56. {
  57. return string.Format ("Task timed out error {0}", timeout);
  58. }
  59. public static string TimeoutInputQueueDequeue(object timeout)
  60. {
  61. return string.Format ("Timeout input queue dequeue {0}", timeout);
  62. }
  63. public static string TimeoutMustBeNonNegative(object argumentName, object timeout)
  64. {
  65. return string.Format ("Timeout must be non-negative {0} and {1}", argumentName, timeout);
  66. }
  67. public static string TimeoutMustBePositive(string argumentName, object timeout)
  68. {
  69. return string.Format ("Timeout must be positive {0} {1}", argumentName, timeout);
  70. }
  71. public static string TimeoutOnOperation(object timeout)
  72. {
  73. return string.Format ("Timeout on operation {0}", timeout);
  74. }
  75. public static string AsyncResultCompletedTwice (Type t)
  76. {
  77. return string.Format ("AsyncResult Completed Twice for {0}", t);
  78. }
  79. public const string ActionItemIsAlreadyScheduled = "Action Item Is Already Scheduled";
  80. public const string AsyncCallbackThrewException = "Async Callback Threw Exception";
  81. public const string AsyncResultAlreadyEnded = "Async Result Already Ended";
  82. public const string BadCopyToArray = "Bad Copy To Array";
  83. public const string BufferIsNotRightSizeForBufferManager = "Buffer Is Not Right Size For Buffer Manager";
  84. public const string DictionaryIsReadOnly = "Dictionary Is Read Only";
  85. public const string InvalidAsyncResult = "Invalid Async Result";
  86. public const string InvalidAsyncResultImplementationGeneric = "Invalid Async Result Implementation Generic";
  87. public const string InvalidNullAsyncResult = "Invalid Null Async Result";
  88. public const string InvalidSemaphoreExit = "Invalid Semaphore Exit";
  89. public const string KeyCollectionUpdatesNotAllowed = "Key Collection Updates Not Allowed";
  90. public const string KeyNotFoundInDictionary = "Key Not Found In Dictionary";
  91. public const string MustCancelOldTimer = "Must Cancel Old Timer";
  92. public const string NullKeyAlreadyPresent = "Null Key Already Present";
  93. public const string ReadNotSupported = "Read Not Supported";
  94. public const string SFxTaskNotStarted = "SFx Task Not Started";
  95. public const string SeekNotSupported = "Seek Not Supported";
  96. public const string ThreadNeutralSemaphoreAborted = "Thread Neutral Semaphore Aborted";
  97. public const string ValueCollectionUpdatesNotAllowed = "Value Collection Updates Not Allowed";
  98. public const string ValueMustBeNonNegative = "Value Must Be Non Negative";
  99. }
  100. }