Skip to content

InterfaceProperty

Render a C# interface property.

import { InterfaceProperty } from "@alloy-js/csharp";
<InterfaceProperty
attributes={AttributesProp}
doc={Children}
file
get
internal
name={string | Namekey}
new
nullable
private
protected
public
refkey={Refkey}
set
type={Children}
/>
attributesoptionalAttributesPropDefine attributes to attach
docoptionalChildrenDoc comment
fileoptional boolean
getoptional booleanIf property should have a getter
internaloptional boolean
namestring | Namekey
newoptional boolean
nullableoptional booleanProperty initializer
privateoptional boolean
protectedoptional boolean
publicoptional boolean
refkeyoptionalRefkey
setoptional booleanIf property should have a setter
typeChildrenProperty type
<InterfaceProperty public name="My" get set />
public int My { get; set; };