Class ClassModel
Contains basic properties of class.
public sealed class ClassModel
- Inheritance
-
ClassModel
- Extension Methods
Constructors
ClassModel(string)
public ClassModel(string name)
Parameters
name
string
ClassModel(string, string)
public ClassModel(string fileName, string name)
Parameters
Properties
BaseType
Gets or sets type of base class to inherit current class from.
public IType? BaseType { get; set; }
Property Value
CustomAttributes
List of additional custom attributes. Doesn't include metadata attributes.
public List<CodeAttribute>? CustomAttributes { get; set; }
Property Value
FileName
Gets or sets optional file name for class without extension.
public string? FileName { get; set; }
Property Value
Interfaces
List of implemented interfaces, could be null
.
public List<IType>? Interfaces { get; set; }
Property Value
Modifiers
Get or sets class modifiers.
public Modifiers Modifiers { get; set; }
Property Value
Name
Gets or sets class name.
public string Name { get; set; }
Property Value
Namespace
Gets or sets class namespace.
public string? Namespace { get; set; }
Property Value
Summary
Gets or sets xml-doc comment summary section text for class.
public string? Summary { get; set; }