Static class to create instances of automatically generated types implementing the provided interfaces.
More...
|
static T | InstanceOf< T > () |
| Creates an instance of a type implementing the interface T Will generate a type implementing T on the first call and re-use it on subsequent calls.
|
Static class to create instances of automatically generated types implementing the provided interfaces.
◆ InstanceOf< T >()
T PeanutButter.DuckTyping.Create.InstanceOf< T > |
( |
| ) |
|
|
static |
Creates an instance of a type implementing the interface T Will generate a type implementing T on the first call and re-use it on subsequent calls.
- Template Parameters
-
T | Interface to implement in provided object |
- Returns
- Instance of an object implementing the provided interface
The documentation for this class was generated from the following file:
- source/Utils/PeanutButter.DuckTyping/Create.cs