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

4x4 Matrix in Python -

python - PyInstaller UAC not working in onefile mode -

javascript - Building and updating array objects -