FSharp.Data.Toolbox


ProvidedEvent Type

Represents an erased provided property.

Constructors

Constructor Description

ProvidedEvent(eventName, eventHandlerType, adderCode, removerCode, ?isStatic)

Full Usage: ProvidedEvent(eventName, eventHandlerType, adderCode, removerCode, ?isStatic)

Parameters:
    eventName : string
    eventHandlerType : Type
    adderCode : Expr list -> Expr
    removerCode : Expr list -> Expr
    ?isStatic : bool

Returns: ProvidedEvent

Create a new provided event. It is not initially associated with any specific provided type definition.

eventName : string
eventHandlerType : Type
adderCode : Expr list -> Expr
removerCode : Expr list -> Expr
?isStatic : bool
Returns: ProvidedEvent

Instance members

Instance member Description

this.AddDefinitionLocation(line, column, filePath)

Full Usage: this.AddDefinitionLocation(line, column, filePath)

Parameters:
    line : int
    column : int
    filePath : string

Add definition location information to the provided type definition.

line : int
column : int
filePath : string

this.AddXmlDoc(xmlDoc)

Full Usage: this.AddXmlDoc(xmlDoc)

Parameters:
    xmlDoc : string

Add XML documentation information to this provided constructor

xmlDoc : string

this.AddXmlDocComputed(xmlDocFunction)

Full Usage: this.AddXmlDocComputed(xmlDocFunction)

Parameters:
    xmlDocFunction : unit -> string

Add XML documentation information to this provided constructor, where the computation of the documentation is delayed until necessary The documentation is re-computed every time it is required.

xmlDocFunction : unit -> string

this.AddXmlDocDelayed(xmlDocFunction)

Full Usage: this.AddXmlDocDelayed(xmlDocFunction)

Parameters:
    xmlDocFunction : unit -> string

Add XML documentation information to this provided constructor, where the computation of the documentation is delayed until necessary

xmlDocFunction : unit -> string

this.IsStatic

Full Usage: this.IsStatic

Returns: bool

Get a flag indicating if the property is static.

Returns: bool