Class CodeField
Class field definition.
public sealed class CodeField : IGroupElement, ICodeElement, ITypedName
- Inheritance
-
CodeField
- Implements
- Extension Methods
Constructors
CodeField(CodeIdentifier, CodeTypeToken, Modifiers, ICodeExpression?)
public CodeField(CodeIdentifier name, CodeTypeToken type, Modifiers attributes, ICodeExpression? initializer)
Parameters
name
CodeIdentifiertype
CodeTypeTokenattributes
Modifiersinitializer
ICodeExpression
CodeField(CodeIdentifier, IType)
public CodeField(CodeIdentifier name, IType type)
Parameters
name
CodeIdentifiertype
IType
Properties
Attributes
Field attributes and modifiers.
public Modifiers Attributes { get; }
Property Value
Initializer
Optional field initializer.
public ICodeExpression? Initializer { get; }
Property Value
Name
Field name.
public CodeIdentifier Name { get; }
Property Value
Reference
Simple reference to current field.
public CodeReference Reference { get; }
Property Value
Type
Field type.
public CodeTypeToken Type { get; }