/// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="xelement"></param>
 public InterfaceFacet(XElement xelement)
     : base(xelement)
 {
     Properties            = new FacetList <PropertyFacet>(xelement, "Property", this);
     ImplementedInterfaces = new FacetList <ImplementedInterfaceFacet>(xelement, "ImplementedInterface", this);
     Methods = new FacetList <MethodFacet>(xelement, "Method", this);
     ParseMethodsForOverrides(Methods);
 }
Exemple #2
0
        public NamespaceFacet(XElement xelement)
            : base(xelement)
        {
            Classes      = new FacetList <ClassFacet>(xelement, "Class", this);
            Interfaces   = new FacetList <InterfaceFacet>(xelement, "Interface", this);
            Enumerations = new FacetList <EnumerationFacet>(xelement, "Enumeration", this);
            Structs      = new FacetList <StructFacet>(xelement, "Struct", this);

            // Managed interfaces do not derive from a base type
            // but we want to treat them like an object that does
            foreach (InterfaceFacet facet in Interfaces)
            {
                facet.SetDefaultBaseType();
            }
        }