/[xmltv_parser]/trunk/libxmltv/Core/ThrowHelper.cs
ViewVC logotype

Diff of /trunk/libxmltv/Core/ThrowHelper.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/libxmltv/Core/ThrowHelper.cs	2013/03/10 08:21:30	92
+++ trunk/libxmltv/Core/ThrowHelper.cs	2013/03/10 08:44:53	93
@@ -219,12 +219,12 @@
 
         internal static void ThrowArgumentException(ExceptionResource resource)
         {
-            throw new ArgumentException(Environment.GetResourceString(GetResourceName(resource)));
+            throw new ArgumentException(ResourceStringHelper.GetResourceString(GetResourceName(resource)));
         }
 
         internal static void ThrowArgumentException(ExceptionResource resource, ExceptionArgument argument)
         {
-            throw new ArgumentException(Environment.GetResourceString(GetResourceName(resource)), GetArgumentName(argument));
+            throw new ArgumentException(ResourceStringHelper.GetResourceString(GetResourceName(resource)), GetArgumentName(argument));
         }
 
         internal static void ThrowArgumentNullException(ExceptionArgument argument)
@@ -245,12 +245,12 @@
 
         internal static void ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
         {
-            throw new ArgumentOutOfRangeException(GetArgumentName(argument), Environment.GetResourceString(GetResourceName(resource)));
+            throw new ArgumentOutOfRangeException(GetArgumentName(argument), ResourceStringHelper.GetResourceString(GetResourceName(resource)));
         }
 
         internal static void ThrowInvalidOperationException(ExceptionResource resource)
         {
-            throw new InvalidOperationException(Environment.GetResourceString(GetResourceName(resource)));
+            throw new InvalidOperationException(ResourceStringHelper.GetResourceString(GetResourceName(resource)));
         }
 
         internal static void ThrowKeyNotFoundException()
@@ -260,37 +260,37 @@
 
         internal static void ThrowNotSupportedException(ExceptionResource resource)
         {
-            throw new NotSupportedException(Environment.GetResourceString(GetResourceName(resource)));
+            throw new NotSupportedException(ResourceStringHelper.GetResourceString(GetResourceName(resource)));
         }
 
         internal static void ThrowObjectDisposedException(string objectName, ExceptionResource resource)
         {
-            throw new ObjectDisposedException(objectName, Environment.GetResourceString(GetResourceName(resource)));
+            throw new ObjectDisposedException(objectName, ResourceStringHelper.GetResourceString(GetResourceName(resource)));
         }
 
         internal static void ThrowSecurityException(ExceptionResource resource)
         {
-            throw new SecurityException(Environment.GetResourceString(GetResourceName(resource)));
+            throw new SecurityException(ResourceStringHelper.GetResourceString(GetResourceName(resource)));
         }
 
         internal static void ThrowSerializationException(ExceptionResource resource)
         {
-            throw new SerializationException(Environment.GetResourceString(GetResourceName(resource)));
+            throw new SerializationException(ResourceStringHelper.GetResourceString(GetResourceName(resource)));
         }
 
         internal static void ThrowUnauthorizedAccessException(ExceptionResource resource)
         {
-            throw new UnauthorizedAccessException(Environment.GetResourceString(GetResourceName(resource)));
+            throw new UnauthorizedAccessException(ResourceStringHelper.GetResourceString(GetResourceName(resource)));
         }
 
         internal static void ThrowWrongKeyTypeArgumentException(object key, Type targetType)
         {
-            throw new ArgumentException(Environment.GetResourceString("Arg_WrongType", new object[] { key, targetType }), "key");
+            throw new ArgumentException(ResourceStringHelper.GetResourceString("Arg_WrongType", new object[] { key, targetType }), "key");
         }
 
         internal static void ThrowWrongValueTypeArgumentException(object value, Type targetType)
         {
-            throw new ArgumentException(Environment.GetResourceString("Arg_WrongType", new object[] { value, targetType }), "value");
+            throw new ArgumentException(ResourceStringHelper.GetResourceString("Arg_WrongType", new object[] { value, targetType }), "value");
         }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22