Beispiel #1
0
 public TypeDefinition GetTypeDefinition(icTypeDefinition item)
 {
     return(TryGetOrAdd(_typecache, item, tdef => ILSpyHelper.FindMatchingType(AssemblyDefinition, tdef)));
 }
Beispiel #2
0
 public static TypeDefinition FindMatchingType(AssemblyDefinition adef, icTypeDefinition ictdef)
 {
     return(adef.MainModule.GetTypes().FirstOrDefault(t => t.FullName == ictdef.FullName));
 }
		public TypeDefinition GetTypeDefinition(icTypeDefinition item)
		{
			return TryGetOrAdd(_typecache, item, tdef => ILSpyHelper.FindMatchingType(AssemblyDefinition, tdef));
		}
Beispiel #4
0
		public static TypeDefinition FindMatchingType(AssemblyDefinition adef, icTypeDefinition ictdef)
		{
			return adef.MainModule.GetTypes().FirstOrDefault(t => t.FullName == ictdef.FullName);
		}