A delegate used by Add<(Of <<'(TContext, TResult>)>>)(ILookupDecorator, WrapperFactory<(Of <<'(TContext, TResult>)>>))
Namespace: yWorks.Support.ExtensionsAssembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.1.0.2
Syntax
| C# |
|---|
[CanBeNullAttribute] public delegate TResult WrapperFactory<TContext, TResult>( TContext item, TResult baseImplementation ) where TResult : class |
| Visual Basic |
|---|
<CanBeNullAttribute> _ Public Delegate Function WrapperFactory(Of TContext, TResult As Class) ( _ item As TContext, _ baseImplementation As TResult _ ) As TResult |
Parameters
- item
- Type: TContext
The item which has been used as the subject in the IContextLookup.
- baseImplementation
- Type: TResult
The implementation that has been returned by the chain, can be nullNothingnullptra null reference (Nothing in Visual Basic).
Type Parameters
- TContext
- The type of the context
- TResult
- The type of the query, which is not necessarily the type of the baseImplementation or the return value, but possibly a base type thereof.
Return Value
The implementation to yield, which may be nullNothingnullptra null reference (Nothing in Visual Basic), baseImplementation or a new implementation thereof.
Remarks
This delegate can be used to wrap provided instances into new instances with respect
to a certain context.