Ejemplo n.º 1
0
 public TypeDefinition GetTypeDefinition(icTypeDefinition item)
 {
     return(TryGetOrAdd(_typecache, item, tdef => ILSpyHelper.FindMatchingType(AssemblyDefinition, tdef)));
 }
Ejemplo n.º 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));
		}
Ejemplo n.º 4
0
		public static TypeDefinition FindMatchingType(AssemblyDefinition adef, icTypeDefinition ictdef)
		{
			return adef.MainModule.GetTypes().FirstOrDefault(t => t.FullName == ictdef.FullName);
		}