CodeDirectiveCollection Constructor ()


Initializes a new instance of the CodeDirectiveCollection class.

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public CodeDirectiveCollection()

The following code example shows the use of the CodeDirectiveCollection() constructor to create a new instance of the class. This example is part of a larger example provided for the CodeDirectiveCollection class.

// Creates an empty CodeDirectiveCollection.
CodeDirectiveCollection collection = new CodeDirectiveCollection();

.NET Framework
Available since 2.0
Return to top