Ejemplo n.º 1
0
 internal static void ThrowArgumentOutOfRangeException()
 {
     throw new ArgumentOutOfRangeException(ThrowHelper.GetArgumentName(ExceptionArgument.index), ResourceHelper.GetResourceString(ThrowHelper.GetResourceName(ExceptionResource.ArgumentOutOfRange_Index)));
 }
Ejemplo n.º 2
0
 internal static void ThrowUnauthorizedAccessException(ExceptionResource resource)
 {
     throw new UnauthorizedAccessException(ResourceHelper.GetResourceString(ThrowHelper.GetResourceName(resource)));
 }
Ejemplo n.º 3
0
 internal static void ThrowObjectDisposedException(string objectName, ExceptionResource resource)
 {
     throw new ObjectDisposedException(objectName, ResourceHelper.GetResourceString(ThrowHelper.GetResourceName(resource)));
 }
Ejemplo n.º 4
0
 internal static void ThrowSecurityException(ExceptionResource resource)
 {
     throw new SecurityException(ResourceHelper.GetResourceString(ThrowHelper.GetResourceName(resource)));
 }
Ejemplo n.º 5
0
 internal static void ThrowNotSupportedException(ExceptionResource resource)
 {
     throw new NotSupportedException(ResourceHelper.GetResourceString(ThrowHelper.GetResourceName(resource)));
 }
Ejemplo n.º 6
0
 internal static void ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
 {
     throw new ArgumentOutOfRangeException(ThrowHelper.GetArgumentName(argument), ResourceHelper.GetResourceString(ThrowHelper.GetResourceName(resource)));
 }
Ejemplo n.º 7
0
 internal static void ThrowInvalidOperationException(ExceptionResource resource)
 {
     throw new InvalidOperationException(ResourceHelper.GetResourceString(ThrowHelper.GetResourceName(resource)));
 }
Ejemplo n.º 8
0
 internal static void ThrowWrongValueTypeArgumentException(object value, Type targetType)
 {
     throw new ArgumentException(ResourceHelper.GetResourceString("Arg_WrongType"));
 }
Ejemplo n.º 9
0
 internal static void ThrowArgumentException(ExceptionResource resource, ExceptionArgument argument)
 {
     throw new ArgumentException(ResourceHelper.GetResourceString(ThrowHelper.GetResourceName(resource)), ThrowHelper.GetArgumentName(argument));
 }
Ejemplo n.º 10
0
 internal static void ReadNotSupported()
 {
     throw new NotSupportedException(ResourceHelper.GetResourceString("NotSupported_UnreadableStream"));
 }
Ejemplo n.º 11
0
 public static void WriteNotSupported()
 {
     throw new NotSupportedException(ResourceHelper.GetResourceString("NotSupported_UnwritableStream"));
 }
Ejemplo n.º 12
0
 public static void MemoryStreamNotExpandable()
 {
     throw new NotSupportedException(ResourceHelper.GetResourceString("NotSupported_MemStreamNotExpandable"));
 }
Ejemplo n.º 13
0
 public static void StreamIsClosed()
 {
     throw new ObjectDisposedException(null, ResourceHelper.GetResourceString("ObjectDisposed_StreamClosed"));
 }
Ejemplo n.º 14
0
 public static void EndOfFile()
 {
     throw new EndOfStreamException(ResourceHelper.GetResourceString("IO.EOF_ReadBeyondEOF"));
 }