diff options
author | Jb Evain <jb@evain.net> | 2017-10-25 01:55:27 +0300 |
---|---|---|
committer | Jb Evain <jb@evain.net> | 2017-10-25 01:55:27 +0300 |
commit | 6a55f42cdfbbe3d16aa1c2832f3a50c74694c8da (patch) | |
tree | e6af35a886c178ba02a593b3a07acf5e9c367cb2 | |
parent | 8cb7ef78381ff8bd9a110faf4a4e84b7ab35ed1b (diff) |
More style fixes
-rw-r--r-- | Mono/Type.cs | 22 | ||||
-rw-r--r-- | Test/Mono.Cecil.Tests/AssemblyTests.cs | 2 |
2 files changed, 12 insertions, 12 deletions
diff --git a/Mono/Type.cs b/Mono/Type.cs index 6412894..fd53f81 100644 --- a/Mono/Type.cs +++ b/Mono/Type.cs @@ -79,16 +79,6 @@ namespace Mono { #endif } - public static Type [] GetGenericArguments (this Type type) - { -#if NET_CORE - var info = type.GetTypeInfo (); - return info.IsGenericTypeDefinition ? info.GenericTypeParameters : info.GenericTypeArguments; -#else - return type.GetGenericArguments (); -#endif - } - public static Assembly Assembly (this Type type) { #if NET_CORE @@ -107,6 +97,16 @@ namespace Mono { #endif } + public static Type [] GetGenericArguments (this Type type) + { +#if NET_CORE + var info = type.GetTypeInfo (); + return info.IsGenericTypeDefinition ? info.GenericTypeParameters : info.GenericTypeArguments; +#else + return type.GetGenericArguments (); +#endif + } + public static bool IsGenericType (this Type type) { #if NET_CORE @@ -132,6 +132,6 @@ namespace Mono { #else return type.IsValueType; #endif -} + } } } diff --git a/Test/Mono.Cecil.Tests/AssemblyTests.cs b/Test/Mono.Cecil.Tests/AssemblyTests.cs index bd7d6cd..af45a3c 100644 --- a/Test/Mono.Cecil.Tests/AssemblyTests.cs +++ b/Test/Mono.Cecil.Tests/AssemblyTests.cs @@ -82,7 +82,7 @@ namespace Mono.Cecil.Tests { if (Platform.OnCoreClr) return; - TestModule("System.Runtime.dll", module => { + TestModule ("System.Runtime.dll", module => { Assert.AreEqual ("System.Runtime", module.Assembly.Name.Name); Assert.AreEqual (1, module.AssemblyReferences.Count); Assert.AreNotEqual (module, module.TypeSystem.CoreLibrary); |