开发者

Readymade delegates in ASP.NET 2.0

What are the readymade delegates like

delegate void Action<T>(T obj);
delegate TOutput Converter<TInput, TOutput>(TInput input);
delegate Boolean Pre开发者_如何学运维dicate<T>(T obj);
Function delegate

available in ASP.NET 2.0.


Try something like this to print a list, although the list will also contain any special-purpose delegates too:

foreach (Type t in typeof(object).Assembly.GetTypes())
{
    if (t.IsPublic && typeof(Delegate).IsAssignableFrom(t))
        Console.WriteLine(t.Name);
}


All of these are 3.5 c# stuff so the answer is no one (but you can declare them by your own)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜