1 namespace System.Runtime {
3 internal static class InternalSR {
4 public static string ArgumentNullOrEmpty(string paramName)
6 return string.Format ("{0} is null or empty");
9 public static string AsyncEventArgsCompletedTwice(Type t)
11 return string.Format ("AsyncEventArgs completed twice for {0}", t);
14 public static string AsyncEventArgsCompletionPending(Type t)
16 return string.Format ("AsyncEventArgs completion pending for {0}", t);
19 public static string BufferAllocationFailed(int size)
21 return string.Format ("Buffer allocation of size {0} failed", size);
24 public static string BufferedOutputStreamQuotaExceeded(int maxSizeQuota)
26 return string.Format ("Buffered output stream quota exceeded (maxSizeQuota={0})", maxSizeQuota);
29 public static string CannotConvertObject(object source, Type t)
31 return string.Format ("Cannot convert object {0} to {1}", source, t);
34 public static string EtwAPIMaxStringCountExceeded(object max)
36 return string.Format ("ETW API max string count exceeded {0}", max);
39 public static string EtwMaxNumberArgumentsExceeded(object max)
41 return string.Format ("ETW max number arguments exceeded {0}", max);
44 public static string EtwRegistrationFailed(object arg)
46 return string.Format ("ETW registration failed {0}", arg);
49 public static string FailFastMessage(string description)
51 return string.Format ("Fail fast: {0}", description);
54 public static string InvalidAsyncResultImplementation(Type t)
56 return string.Format ("Invalid AsyncResult implementation: {0}", t);
59 public static string LockTimeoutExceptionMessage (object timeout)
61 return string.Format ("Lock timeout {0}", timeout);
64 public static string ShipAssertExceptionMessage(object description)
66 return string.Format ("Ship assert exception {0}", description);
69 public static string TaskTimedOutError (object timeout)
71 return string.Format ("Task timed out error {0}", timeout);
74 public static string TimeoutInputQueueDequeue(object timeout)
76 return string.Format ("Timeout input queue dequeue {0}", timeout);
79 public static string TimeoutMustBeNonNegative(object argumentName, object timeout)
81 return string.Format ("Timeout must be non-negative {0} and {1}", argumentName, timeout);
84 public static string TimeoutMustBePositive(string argumentName, object timeout)
86 return string.Format ("Timeout must be positive {0} {1}", argumentName, timeout);
89 public static string TimeoutOnOperation(object timeout)
91 return string.Format ("Timeout on operation {0}", timeout);
94 public static string AsyncResultCompletedTwice (Type t)
96 return string.Format ("AsyncResult Completed Twice for {0}", t);
99 public const string ActionItemIsAlreadyScheduled = "Action Item Is Already Scheduled";
100 public const string AsyncCallbackThrewException = "Async Callback Threw Exception";
101 public const string AsyncResultAlreadyEnded = "Async Result Already Ended";
102 public const string BadCopyToArray = "Bad Copy To Array";
103 public const string BufferIsNotRightSizeForBufferManager = "Buffer Is Not Right Size For Buffer Manager";
104 public const string DictionaryIsReadOnly = "Dictionary Is Read Only";
105 public const string InvalidAsyncResult = "Invalid Async Result";
106 public const string InvalidAsyncResultImplementationGeneric = "Invalid Async Result Implementation Generic";
107 public const string InvalidNullAsyncResult = "Invalid Null Async Result";
108 public const string InvalidSemaphoreExit = "Invalid Semaphore Exit";
109 public const string KeyCollectionUpdatesNotAllowed = "Key Collection Updates Not Allowed";
110 public const string KeyNotFoundInDictionary = "Key Not Found In Dictionary";
111 public const string MustCancelOldTimer = "Must Cancel Old Timer";
112 public const string NullKeyAlreadyPresent = "Null Key Already Present";
113 public const string ReadNotSupported = "Read Not Supported";
114 public const string SFxTaskNotStarted = "SFx Task Not Started";
115 public const string SeekNotSupported = "Seek Not Supported";
116 public const string ThreadNeutralSemaphoreAborted = "Thread Neutral Semaphore Aborted";
117 public const string ValueCollectionUpdatesNotAllowed = "Value Collection Updates Not Allowed";
118 public const string ValueMustBeNonNegative = "Value Must Be Non Negative";