ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/xmltv_parser/trunk/libxmltv/Core/ThrowHelper.cs
(Generate patch)

Comparing trunk/libxmltv/Core/ThrowHelper.cs (file contents):
Revision 92 by william, Sun Mar 10 08:21:30 2013 UTC vs.
Revision 93 by william, Sun Mar 10 08:44:53 2013 UTC

--- 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 @@ namespace libxmltv.Core
 
         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 @@ namespace libxmltv.Core
 
         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 @@ namespace libxmltv.Core
 
         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");
         }
     }
 }