Пример #1
0
 public AssemblyFacet(XElement xelement)
     : base(xelement)
 {
     Namespaces = new FacetList <NamespaceFacet>(xelement, "Namespace");
     References = new FacetList <CodeFacet>(xelement, "Reference");
     Path       = XElementAttributeValue(xelement, "Path");
 }
Пример #2
0
 public MethodFacet(XElement xelement)
     : base(xelement)
 {
     Parameters                      = new FacetList <ParameterFacet>(xelement, "Parameter");
     IsGenericMethod                 = XElementAttributeBool(xelement, "IsGenericMethod");
     IsGenericMethodDefinition       = XElementAttributeBool(xelement, "IsGenericMethodDefinition");
     ContainsGenericMethodParameters = XElementAttributeBool(xelement, "ContainsGenericMethodParameters");
 }
Пример #3
0
 public InterfaceFacet(XElement xelement)
     : base(xelement)
 {
     Properties            = new FacetList <PropertyFacet>(xelement, "Property");
     ImplementedInterfaces = new FacetList <ImplementedInterfaceFacet>(xelement, "ImplementedInterface");
     Methods = new FacetList <MethodFacet>(xelement, "Method");
     ParseMethodsForOverrides(Methods);
 }
Пример #4
0
        public ClassFacet(XElement xelement)
            : base(xelement)
        {
            Fields       = new FacetList <FieldFacet>(xelement, "Field");
            Constructors = new FacetList <MethodFacet>(xelement, "Constructor");

            // process the constructors
            foreach (MethodFacet facet in Constructors)
            {
                facet.Name = null;      // constructor name must be null
                facet.Type = this.Type; // constructor type matches class type
            }
            ParseMethodsForOverrides(Constructors);
        }
Пример #5
0
        public NamespaceFacet(XElement xelement)
            : base(xelement)
        {
            Classes      = new FacetList <ClassFacet>(xelement, "Class");
            Interfaces   = new FacetList <InterfaceFacet>(xelement, "Interface");
            Enumerations = new FacetList <EnumerationFacet>(xelement, "Enumeration");
            Structs      = new FacetList <StructFacet>(xelement, "Struct");

            // 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();
            }
        }
Пример #6
0
 public ImplementedInterfaceFacet(XElement xelement)
     : base(xelement)
 {
     GenericTypeParameters = new FacetList <ParameterFacet>(xelement, "GenericTypeParameter");
 }
Пример #7
0
 public EnumerationFacet(XElement xelement)
     : base(xelement)
 {
     Fields = new FacetList <FieldFacet>(xelement, "Field");
 }