Mono Class Library: System.CodeDom.CodeTypeDeclaration Overview | Members

System.CodeDom.CodeTypeDeclaration.BaseTypes Property

List of types from which this type is derived.

public CodeTypeReferenceCollection BaseTypes { get; }

Value

System.CodeDom.CodeTypeReferenceCollection containing list of types from which this type is derived.

Remarks

This example demonstrates the use of the CodeTypeDeclaration.BaseTypes.

C# Example

		CodeTypeDeclaration baseClass=new CodeTypeDeclaration("BaseClass");
		baseClass.IsClass=true;
		CodeTypeDeclaration helloClass=new CodeTypeDeclaration("SubClass");
		helloClass.IsClass=true;
		helloClass.BaseTypes.Add(new CodeTypeReference("BaseClass"));
  
Generates the output

C# Example

 public class SubClass : BaseClass {
 }

Requirements

Namespace: System.CodeDom
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0