Func<T> based generic initializers (subjunctive.wordpress.com)
submitted by
bdsutton(525) 1 year, 2 months ago
Here is some work I've been doing to simplify initializing List<T> using Func<T>. You can build a simple method and then instead of building a loop to initialize your object you can use a one line initialization statement.
|
category: C#
|
Views: 17
tags:
Func Generics C# another
Everyones tags:
Your Tags: