on the first sample
new only accepts types. it does the same as "new" in c like languages: it creates a new instance of the class / type you tell it.
There is no type "i" ( as well as "int" etc are no types that can be instanced )
and the second sample:
new requires, as mentioned above, the TYPE, not a variable ( see the helpfiles on userdefined types for further informations )
new only accepts types. it does the same as "new" in c like languages: it creates a new instance of the class / type you tell it.
There is no type "i" ( as well as "int" etc are no types that can be instanced )
and the second sample:
new requires, as mentioned above, the TYPE, not a variable ( see the helpfiles on userdefined types for further informations )