3 using System.Collections.Generic;
5 using System.Reflection;
7 using System.Xml.Schema;
9 using QName = System.Xml.XmlQualifiedName;
11 namespace System.Runtime.Serialization
13 public class XsdDataContractExporter
15 ExportOptions options;
18 public XsdDataContractExporter ()
22 public XsdDataContractExporter (XmlSchemaSet schemas)
24 this.schemas = schemas;
27 public XmlSchemaSet Schemas {
28 get { return schemas; }
31 public ExportOptions Options {
32 get { return options; }
33 set { options = value; }
36 public bool CanExport (IList<Type> types)
38 foreach (Type t in types)
44 public bool CanExport (IList<Assembly> assemblies)
46 foreach (Assembly a in assemblies)
47 foreach (Module m in a.GetModules ())
48 foreach (Type t in m.GetTypes ())
54 public bool CanExport (Type type)
56 throw new NotImplementedException ();
59 public void Export (IList<Type> types)
61 foreach (Type t in types)
65 public void Export (IList<Assembly> assemblies)
67 foreach (Assembly a in assemblies)
68 foreach (Module m in a.GetModules ())
69 foreach (Type t in m.GetTypes ())
73 public void Export (Type type)
75 throw new NotImplementedException ();
78 public static XmlQualifiedName GetRootElementName (Type type)
80 throw new NotImplementedException ();
83 public static XmlQualifiedName GetSchemaTypeName (Type type)
85 throw new NotImplementedException ();