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 -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -