public static ImportedInterfaceMetadata GetValue(Type type) { if (Cache.TryGetValue(type, out var value)) { return(value); } value = new ImportedInterfaceMetadata(type); Cache.TryAdd(type, value); return(value); }
public InterfaceObjectMetadata(Type type) { var parent = type.GetInterfaces().OrderBy(t => t.GetInterfaces().Length).LastOrDefault(); this.VirtualTablesize = ImportedInterfaceMetadata.GetValue(parent).VirtualTableSize; }