Ellipses under new keyword in c#? -


why there ellipses underneath new keyword?

why there ellipses underneath new keyword. cant find article on internet. there multiple instances have used new keyword in same method. normal except one.

edit - using visual studio 2017 community edition. developing uwp. code runs fine , not shown error. pressing ctrl+. gives nothing.

i guess it's telling you can use object initializer. if have code like

folderpicker pickfolder = new folderpicker(); folderpicker.suggestedstartlocation = pickerlocationid.desktop; folderpicker.commitbuttontext = "take it!"; 

visual studio recommends use this

folderpicker pickfolder = new folderpicker {     suggestedstartlocation = pickerlocationid.desktop,     commitbuttontext = "take it!" }; 

instead.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

python - Error: Unresolved reference 'selenium' What is the reason? -

php - Need to store a large amount of data in session with CI 3 but on storing large data in session it is itself destorying automatically -