Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

nuget.org : ark.delegateconstraint

This package ultimately lets you constrain generic type parameters to the `System.Delegate` type. Just replace the problematic constraints and types with the `Ark.IDelegate` stubs which are wiped away without a trace after the assembly is compiled. If you try to write `class MyClass<T> where T : Delegate { }` the C# compiler won't let you. Install this package and replace that code with `class MyClass<T> where T : Ark.IDelegate { }`. If you need to refer to a concrete delegate-constrained class in the same library then instead of `MyClass<Action>` you'd need to write `MyClass<Ark.IDelegate<Action>>` so that the code compiles. Don't worry - all these stubs are removed from the resulting assembly.

Registry - Homepage - JSON
purl: pkg:nuget/ark.delegateconstraint
Keywords: delegates, generic, constraints
License:
Latest release: over 11 years ago
First release: over 11 years ago
Downloads: 11,481 total
Stars: 1 on GitHub
Forks: 2 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 10 days ago

    Loading...
    Readme
    Loading...