Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public InterfaceObjectMetadata(Type type)
        {
            var parent = type.GetInterfaces().OrderBy(t => t.GetInterfaces().Length).LastOrDefault();

            this.VirtualTablesize = ImportedInterfaceMetadata.GetValue(parent).VirtualTableSize;
        }