Queues and Extension methods
Posted: Tue Jan 29, 2013 2:32 pm
i'm trying to compile the following code under Win 7 monodevelop:
MD is fine with compiling and running the dequeue line, but never heard of "elementAt".
i see that "elementAt" is an "extension method": http://msdn.microsoft.com/en-us/library/7977ey2c.aspx
if my problem is syntax, then what syntax shall i use in order to call an extension method, please?
- Code: Select all
myQueueInstance.dequeue
myQueueInstance.elementAt(2)
MD is fine with compiling and running the dequeue line, but never heard of "elementAt".
i see that "elementAt" is an "extension method": http://msdn.microsoft.com/en-us/library/7977ey2c.aspx
if my problem is syntax, then what syntax shall i use in order to call an extension method, please?