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)
精彩评论