Ejemplo n.º 1
0
        void MapInterfaceHierarchy(TypeDefinition type)
        {
            if (!type.IsInterface || !type.HasInterfaces)
            {
                return;
            }

            foreach (var iface in type.Interfaces)
            {
                var resolved = iface.InterfaceType.Resolve();
                if (resolved == null)
                {
                    continue;
                }

                Annotations.AddDerivedInterfaceForInterface(resolved, type);
            }
        }