List of types from which this type is derived.
System.CodeDom.CodeTypeReferenceCollection containing list of types from which this type is derived.
This example demonstrates the use of the CodeTypeDeclaration.BaseTypes.Generates the outputC# Example
CodeTypeDeclaration baseClass=new CodeTypeDeclaration("BaseClass"); baseClass.IsClass=true; CodeTypeDeclaration helloClass=new CodeTypeDeclaration("SubClass"); helloClass.IsClass=true; helloClass.BaseTypes.Add(new CodeTypeReference("BaseClass"));C# Example
public class SubClass : BaseClass { }
Namespace: System.CodeDom
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0