Class CSharpProperty
- Namespace
- NanoByte.CodeGeneration
- Assembly
- NanoByte.CodeGeneration.dll
A property on a CSharpInterface or CSharpClass.
public class CSharpProperty
- Inheritance
-
CSharpProperty
- Inherited Members
Constructors
CSharpProperty(CSharpIdentifier, string)
A property on a CSharpInterface or CSharpClass.
public CSharpProperty(CSharpIdentifier type, string name)
Parameters
type
CSharpIdentifierThe type of the property.
name
stringThe name of the property.
Properties
Attributes
Attributes to apply to the property.
public List<CSharpAttribute> Attributes { get; }
Property Value
GetterExpression
An expression body for the property's getter.
public CSharpConstructor? GetterExpression { get; set; }
Property Value
HasSetter
Indicates whether the property has a setter.
public bool HasSetter { get; set; }
Property Value
Initializer
The property's initializer (sets default value).
public CSharpConstructor? Initializer { get; set; }
Property Value
Name
The name of the property.
public string Name { get; }
Property Value
Summary
A summary used for an XML documentation comment.
public string? Summary { get; set; }
Property Value
Type
The type of the property.
public CSharpIdentifier Type { get; }
Property Value
Methods
ToString()
Returns the name of the property.
public override string ToString()