Skip to content

v3.1.0 Open Generic Create Functions

Choose a tag to compare

@Yeah69 Yeah69 released this 11 Feb 15:10
· 78 commits to main since this release
d13c4bb

DIE now supports open generic types for create functions. For example, declare

[CreateFunction(typeof(MyGenericClass<>), "Create")]

and let DIE generate a function with following header:

public MyClass<T_0_0> Create()

The open generic parameter then can be provided upon calling the create function.