A generic factory method delegate that creates instances of a given type
and takes a context object of a given type.
Namespace: yWorks.SupportAssembly: yWorks.yFilesNET.Viewer (in yWorks.yFilesNET.Viewer.dll) Version: 4.1.0.1 (4.1.0.1)
Syntax
| C# |
|---|
public delegate TResult FactoryDelegate<TResult, TContext>( TContext context ) |
| Visual Basic |
|---|
Public Delegate Function FactoryDelegate(Of TResult, TContext) ( _ context As TContext _ ) As TResult |
Parameters
- context
- Type: TContext
The context to pass to the factory. The semantic of this value depends on the implementation and use.
Type Parameters
- TResult
- The type of the object to create.
- TContext
- The type of the context to provide to the factory method.