Ellipses under new keyword in c#? -
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
Post a Comment