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

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbevain <jbevain@gmail.com>2011-07-23 20:41:42 +0400
committerjbevain <jbevain@gmail.com>2011-07-23 20:41:42 +0400
commit8b7bd21a5c26b472c483fbf3128b0b693195a5fd (patch)
tree501a9f20661206029a610c5fe9453292d80596b4
parente1823b7e04496cdf0505c5dc5d07f544a21096cd (diff)
Add a GetType method that parses runtime type names
-rw-r--r--Mono.Cecil/ModuleDefinition.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Mono.Cecil/ModuleDefinition.cs b/Mono.Cecil/ModuleDefinition.cs
index 107a1dd..6e8aa30 100644
--- a/Mono.Cecil/ModuleDefinition.cs
+++ b/Mono.Cecil/ModuleDefinition.cs
@@ -480,6 +480,13 @@ namespace Mono.Cecil {
return Read (this, (_, reader) => reader.GetMemberReferences ());
}
+ public TypeReference GetType (string fullName, bool runtimeName)
+ {
+ return runtimeName
+ ? TypeParser.ParseType (this, fullName)
+ : GetType (fullName);
+ }
+
public TypeDefinition GetType (string fullName)
{
CheckFullName (fullName);