From daeb0df769d8520b7854b22a0a49ac8a0d09a5bd Mon Sep 17 00:00:00 2001 From: Martin Tamme Date: Sun, 17 Nov 2013 13:51:49 +0100 Subject: [PATCH] Minor changes. --- .gitattributes | 2 ++ .../NProxy.Core/Internal/Templates/ProxyTemplateBase.cs | 6 +++--- Source/Main/NProxy.Core/Proxy.cs | 2 +- Source/Main/NProxy.Core/ProxyTypeBuilder.cs | 4 ++-- 4 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fa2e45b --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# This setting will tell git to handle the files specified automatically. This is a good default option. +* text=auto \ No newline at end of file diff --git a/Source/Main/NProxy.Core/Internal/Templates/ProxyTemplateBase.cs b/Source/Main/NProxy.Core/Internal/Templates/ProxyTemplateBase.cs index 3550abf..d12bf1f 100644 --- a/Source/Main/NProxy.Core/Internal/Templates/ProxyTemplateBase.cs +++ b/Source/Main/NProxy.Core/Internal/Templates/ProxyTemplateBase.cs @@ -118,13 +118,13 @@ private static HashSet ExtractAdditionalInterfaces(IEnumerable inter private static void AddAdditionalInterfaces(Type interfaceType, ICollection declaringInterfaceTypes, HashSet additionalInterfaceTypes) { if (interfaceType == null) - throw new ArgumentException(Resources.Error_InterfaceTypeMustNotBeNull, "interfaceType"); + throw new ArgumentException(Resources.Error_InterfaceTypeMustNotBeNull, "interfaceType"); if (!interfaceType.IsInterface) - throw new ArgumentException(String.Format(Resources.Error_TypeNotAnInterfaceType, interfaceType), "interfaceType"); + throw new ArgumentException(String.Format(Resources.Error_TypeNotAnInterfaceType, interfaceType), "interfaceType"); if (interfaceType.IsGenericTypeDefinition) - throw new ArgumentException(String.Format(Resources.Error_InterfaceTypeMustNotBeAGenericTypeDefinition, interfaceType), "interfaceType"); + throw new ArgumentException(String.Format(Resources.Error_InterfaceTypeMustNotBeAGenericTypeDefinition, interfaceType), "interfaceType"); // Add interface type. if (declaringInterfaceTypes.Contains(interfaceType)) diff --git a/Source/Main/NProxy.Core/Proxy.cs b/Source/Main/NProxy.Core/Proxy.cs index e5713ab..4033302 100644 --- a/Source/Main/NProxy.Core/Proxy.cs +++ b/Source/Main/NProxy.Core/Proxy.cs @@ -119,7 +119,7 @@ public object AdaptInstance(Type interfaceType, object instance) throw new ArgumentNullException("interfaceType"); if (!interfaceType.IsInterface) - throw new ArgumentException(String.Format(Resources.Error_TypeNotAnInterfaceType, interfaceType), "interfaceType"); + throw new ArgumentException(String.Format(Resources.Error_TypeNotAnInterfaceType, interfaceType), "interfaceType"); var proxyInstance = _proxyTemplate.UnwrapInstance(instance); var proxyType = proxyInstance.GetType(); diff --git a/Source/Main/NProxy.Core/ProxyTypeBuilder.cs b/Source/Main/NProxy.Core/ProxyTypeBuilder.cs index 005768c..335f0d6 100644 --- a/Source/Main/NProxy.Core/ProxyTypeBuilder.cs +++ b/Source/Main/NProxy.Core/ProxyTypeBuilder.cs @@ -299,10 +299,10 @@ public void AddInterface(Type interfaceType) throw new ArgumentNullException("interfaceType"); if (!interfaceType.IsInterface) - throw new ArgumentException(String.Format(Resources.Error_TypeNotAnInterfaceType, interfaceType), "interfaceType"); + throw new ArgumentException(String.Format(Resources.Error_TypeNotAnInterfaceType, interfaceType), "interfaceType"); if (interfaceType.IsGenericTypeDefinition) - throw new ArgumentException(String.Format(Resources.Error_InterfaceTypeMustNotBeAGenericTypeDefinition, interfaceType), "interfaceType"); + throw new ArgumentException(String.Format(Resources.Error_InterfaceTypeMustNotBeAGenericTypeDefinition, interfaceType), "interfaceType"); _typeBuilder.AddInterfaceImplementation(interfaceType);