1 using System
.Collections
.Generic
;
5 delegate T Creator
<T
> ();
7 static bool TryAction
<T
> (Creator
<T
> creator
, out T output
)
13 static bool Func1
<T
> (IList
<T
> list
, bool arg
, out T
value) where T
: new ()
15 return TryAction
<T
> (delegate { return Item (list); }
, out value);
18 public static T Item
<T
> (IList
<T
> list
)
20 return GetSingleItem
<T
> (list
);
23 public static T GetSingleItem
<T
> (IList
<T
> list
)
28 public static void Main ()
31 Func1 (new List
<Test
> (), false, out value);