public FieldDefinition GetFieldDefinition(icFieldDefinition item) { return(TryGetOrAdd(_fieldcache, item, fdef => { var tdef = GetTypeDefinition(item.DeclaringType); return tdef == null ? null : ILSpyHelper.FindMatchingField(tdef, fdef); })); }
public EventDefinition GetEventDefinition(icEventDefinition item) { return(TryGetOrAdd(_eventcache, item, edef => { var tdef = GetTypeDefinition(item.DeclaringType); return tdef == null ? null : ILSpyHelper.FindMatchingEvent(tdef, edef); })); }
public PropertyDefinition GetPropertyDefinition(icPropertyDefinition item) { return(TryGetOrAdd(_propertycache, item, pdef => { var tdef = GetTypeDefinition(item.DeclaringType); return tdef == null ? null : ILSpyHelper.FindMatchingProperty(tdef, pdef); })); }
public MethodDefinition GetMethodDefinition(icMethodDefinition item) { return(TryGetOrAdd(_methodcache, item, mdef => { var tdef = GetTypeDefinition(item.DeclaringType); return tdef == null ? null : ILSpyHelper.FindMatchingMethod(tdef, mdef); })); }
public Resource GetResource(icResource item) { return(TryGetOrAdd(_resourcecache, item, res => ILSpyHelper.FindMatchingResource(AssemblyDefinition, res))); }
public TypeDefinition GetTypeDefinition(icTypeDefinition item) { return(TryGetOrAdd(_typecache, item, tdef => ILSpyHelper.FindMatchingType(AssemblyDefinition, tdef))); }
public AssemblyNameReference GetAssemblyNameReference(icAssemblyNameReference item) { return(TryGetOrAdd(_assemblynamereferencecache, item, anref => ILSpyHelper.FindMatchingAssemblyReference(AssemblyDefinition, anref))); }