Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the meaning of "..::." in C#?

Tags:

c#

colon

I saw this signature on the ListView class:

public ListView..::.ListViewItemCollection Items { get; }

When I saw that, "What?!"

I searched "dot dot colon colon dot" and "..::." on Google with no result.

alt text

like image 309
Randy Sugianto 'Yuku' Avatar asked Nov 25 '08 06:11

Randy Sugianto 'Yuku'


1 Answers

That's not C#; that's JScript. In C#, it would be:

public ListView.ListViewItemCollection Items { get; }

It's a little different because ListViewItemCollection is an inner class of ListView.

I'm guessing that you saw this looking at ListView.Items Property (System.Windows.Forms).

If you look at the listing for all the other languages, they're all listed with the JScript syntax. You've found a documentation bug.

like image 106
James Kirk Avatar answered Nov 15 '22 18:11

James Kirk