diff options
Diffstat (limited to 'src/linker/Linker/TypeReferenceExtensions.cs')
-rw-r--r-- | src/linker/Linker/TypeReferenceExtensions.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/linker/Linker/TypeReferenceExtensions.cs b/src/linker/Linker/TypeReferenceExtensions.cs index 13d9db7aa..ae271a0d4 100644 --- a/src/linker/Linker/TypeReferenceExtensions.cs +++ b/src/linker/Linker/TypeReferenceExtensions.cs @@ -231,5 +231,11 @@ namespace Mono.Linker throw new NotImplementedException (); } + + public static bool IsTypeOf (this TypeReference type, string ns, string name) + { + return type.Name == name + && type.Namespace == ns; + } } } |