예제 #1
0
        private void ReplaceDefines(XElement annotation)
        {
            List <XElement> types = new List <XElement>();

            foreach (Type interfaceType in _Types.GetInterfaceTypes("IDefines"))
            {
                XElement complexType = new XElement(_Namespace + "complexType",
                                                    new XAttribute("name", MagickTypes.GetXsdName(interfaceType)));
                AddClass(complexType, interfaceType);
                types.Add(complexType);
            }

            annotation.ReplaceWith(types.ToArray());
        }