Class PropertyModel
Contains basic class property attributes.
public sealed class PropertyModel
- Inheritance
-
PropertyModel
- Extension Methods
Constructors
PropertyModel(string)
public PropertyModel(string name)
Parameters
name
string
PropertyModel(string, IType)
public PropertyModel(string name, IType type)
Parameters
Properties
CustomAttributes
List of additional custom attributes. Doesn't include metadata attributes.
public List<CodeAttribute>? CustomAttributes { get; set; }
Property Value
HasSetter
Gets or sets property setter status.
public bool HasSetter { get; set; }
Property Value
IsDefault
Gets or sets property default implementation attribute.
public bool IsDefault { get; set; }
Property Value
Modifiers
Gets or sets property modifiers.
public Modifiers Modifiers { get; set; }
Property Value
Name
Gets or sets property name.
public string Name { get; set; }
Property Value
Summary
Gets or sets summary section text for property xml-doc comment.
public string? Summary { get; set; }
Property Value
TrailingComment
Gets or sets trailing code comment after property definition. Example:
public string MyProperty { get; set; } // this is property comment
public string? TrailingComment { get; set; }
Property Value
Type
Gets or sets property type.
public IType? Type { get; set; }