Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>2017-05-19 21:04:16 +0300
committerGitHub <noreply@github.com>2017-05-19 21:04:16 +0300
commit9ea7fe4d9f137e36622ee9571888c21ef99cb145 (patch)
tree6b9aac39f73b03010d2c408f626195bb9206cdd8
parent37e220b1182629eb0100a79b67735c5341712f6d (diff)
Add IsGenericMethodDefinition helper (#3660)
-rw-r--r--src/Common/src/TypeSystem/Common/MethodDesc.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Common/src/TypeSystem/Common/MethodDesc.cs b/src/Common/src/TypeSystem/Common/MethodDesc.cs
index 3dc093dbf..2e7058e2a 100644
--- a/src/Common/src/TypeSystem/Common/MethodDesc.cs
+++ b/src/Common/src/TypeSystem/Common/MethodDesc.cs
@@ -450,6 +450,17 @@ namespace Internal.TypeSystem
}
}
+ /// <summary>
+ /// Gets a value indicating whether this is an uninstantiated generic method.
+ /// </summary>
+ public bool IsGenericMethodDefinition
+ {
+ get
+ {
+ return HasInstantiation && IsMethodDefinition;
+ }
+ }
+
public bool IsFinalizer
{
get