What does Method mean?

后端 未结 5 570
北海茫月
北海茫月 2021-01-31 07:57

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

        
5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-31 08:39

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

    • An Introduction to C# Generics
    • Generics (C# Programming Guide)
    • Generic Methods

提交回复
热议问题