XsdDataContractImporter::CodeCompileUnit Property
.NET Framework (current version)
Gets a CodeCompileUnit used for storing the CLR types generated.
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
Property Value
Type: System.CodeDom::CodeCompileUnit^A CodeCompileUnit used to store the CLR types generated.
Call this property after importing schemas using the XsdDataContractImporter to access the CodeCompileUnit in which all the generated code is stored.
The following example uses creates a CodeCompileUnit. The CodeCompileUnit is then used to create both a Visual C# and Visual Basic code file.
.NET Framework
Available since 3.0
Available since 3.0
Show: