We are trying to move an application built in .NET 3.5 to 2.0 (reason to let our exe run on older machines with XP etc. which does not have 3.5)
While doing so everything is now stuck on one major problem Replacing Func with an old fashioned delegate (As Func is not available on 2.0). The code to be replaced is something like this.
private Func<object, string> someName1;
private static Func<object, string> someName2;
internal Func<object, string> someProperty
{
get { return someName1?? (someName1= someName2); }
set { someName1= value; }
}
Can some body please help me create 'someProperty' the way it is only by using delegates. Thanks in advance.
Action<T>
delegate with exactly one generic type argument (your second line). All the others were "missing", so they are OK to introduce in user code. – Helicoid