What does Method<ClassName> mean?

I've seen this syntax a couple times now, and it's beginning to worry me,

For example:

iCalendar iCal = new iCalendar();
Event evt = iCal.Create<Event>();

Google can't help, but I know SO can!

Answers


It's a Generic Method, Create is declared with type parameters, and check this links for more information:


Need Your Help

Asynchronously load image in uitableviewcell

iphone objective-c ios uitableview

I am trying to asynchronously load an image in a UITableVIew.

Template Haskell: Stage Error

haskell template-haskell

I'm trying to understand how the Quasi Quoter generates TH structures. So I'm trying to convert the first example from Template Meta-programming for Haskell, from a quoted format to just the types...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.