Class TypeBuilder<TBuilder, TType>
Base class for type builders.
public abstract class TypeBuilder<TBuilder, TType> where TBuilder : TypeBuilder<TBuilder, TType> where TType : TypeBase
Type Parameters
TBuilder
Builder implementation type.
TType
Built type.
- Inheritance
-
TypeBuilder<TBuilder, TType>
- Derived
- Extension Methods
Constructors
TypeBuilder(TType, ClassGroup)
protected TypeBuilder(TType type, ClassGroup group)
Parameters
type
TTypegroup
ClassGroup
Properties
Group
Class group, to which current class belongs.
public ClassGroup Group { get; }
Property Value
Type
Built type type descriptor.
public TType Type { get; }
Property Value
- TType
Methods
AddAttribute(CodeAttribute)
Add custom attribute to type.
public TBuilder AddAttribute(CodeAttribute attribute)
Parameters
attribute
CodeAttributeCustom attribute.
Returns
- TBuilder
Type builder.
AddAttribute(IType)
Add custom attribute to type.
public AttributeBuilder AddAttribute(IType type)
Parameters
type
ITypeAttribute type.
Returns
- AttributeBuilder
Custom attribute builder.
SetModifiers(Modifiers)
Set modifiers to type. Replaces old value.
public TBuilder SetModifiers(Modifiers modifiers)
Parameters
modifiers
Modifiers
Returns
- TBuilder
Type builder.
XmlComment()
Add xml-doc to type.
public XmlDocBuilder XmlComment()
Returns
- XmlDocBuilder
Xml-doc builder.