diff options
author | jbevain <jbevain@gmail.com> | 2011-07-23 20:41:42 +0400 |
---|---|---|
committer | jbevain <jbevain@gmail.com> | 2011-07-23 20:41:42 +0400 |
commit | 8b7bd21a5c26b472c483fbf3128b0b693195a5fd (patch) | |
tree | 501a9f20661206029a610c5fe9453292d80596b4 /Mono.Cecil | |
parent | e1823b7e04496cdf0505c5dc5d07f544a21096cd (diff) |
Add a GetType method that parses runtime type names
Diffstat (limited to 'Mono.Cecil')
-rw-r--r-- | Mono.Cecil/ModuleDefinition.cs | 7 |
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); |