c# - what does it mean new int[] in cSharp? -


i got line in c# code written :

new int[] mystore; 

i don't know means how translate valid c++?

only possible place such code hiding/shadowing member of parent class same name:

class base {   protected int[] mystore; }  class derived: base {   new int[] mystore; } 

you should able port directly c++ - have similar rules hiding.

note (thanks jeroen vannevel) don't need have base class: can mark property new , warning "nothing hide".


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -