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}
/>
attributesoptional AttributesPropDefine attributes to attach
docoptional ChildrenDoc 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
refkeyoptional Refkey
setoptional booleanIf property should have a setter
typeChildrenProperty type
<InterfaceProperty public name="My" get set />
public int My { get; set; };