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

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

c# - Why won't my code write to SQL? -

c# - Avoiding duplicate methods for Task and Task<T> -