PeanutButter
Loading...
Searching...
No Matches
PeanutButter.DuckTyping.Create Class Reference

Static class to create instances of automatically generated types implementing the provided interfaces. More...

Static Public Member Functions

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.

Detailed Description

Static class to create instances of automatically generated types implementing the provided interfaces.

Member Function Documentation

◆ 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
TInterface 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