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