.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

C# new Operator

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
235 Views, 2 Replies

C# new Operator

Hi All,

Would someone please take the time and give me a layperson explanation of
when to use the C# "new" operator. I do understand the purpose of the "new"
operator but I don't understand when to apply it. I have been studying C#
for sometime, and the "new" operator is confusing to me. When I am in the
Object Browser, should I be looking for something in particular?

Regards,

Jon
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

See http://msdn.microsoft.com/vcsharp/learning/ for C# resources.

This really isn't the appropriate forum; but in short, new() is the way in
C# to create new instances of objects--unlike C++ where you can get new
instances from a copy constructor, assignment operator and stack variables.

Dan

"JonBager" wrote in message
news:5254390@discussion.autodesk.com...
Hi All,

Would someone please take the time and give me a layperson explanation of
when to use the C# "new" operator. I do understand the purpose of the "new"
operator but I don't understand when to apply it. I have been studying C#
for sometime, and the "new" operator is confusing to me. When I am in the
Object Browser, should I be looking for something in particular?

Regards,

Jon
Message 3 of 3
Anonymous
in reply to: Anonymous

The new keyword [1] has a couple of different uses.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

[1]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vclrfNewOpPG.asp


"JonBager" wrote in message
news:5254390@discussion.autodesk.com...
Hi All,

Would someone please take the time and give me a layperson explanation of
when to use the C# "new" operator. I do understand the purpose of the "new"
operator but I don't understand when to apply it. I have been studying C#
for sometime, and the "new" operator is confusing to me. When I am in the
Object Browser, should I be looking for something in particular?

Regards,

Jon

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost