TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
vikrampschauhan
NA
4
0
Why difference in behaviour of 'new' outside and inside unsafe block?
Dec 12 2004 9:31 PM
In C#, for class MyClass, on doing: MyClass myClass=new MyClass(); myClass will hold an address, that was returned by new. But if we have an unsafe block of code, unsafe { MyClass myClass1=new MyClass(); } myClass1 is created as an object on the stack. new merely calls the constructor of MyClass. Am I correct? I believe that class objects created in the unsafe block can only be placed on the stack. Am I correct? (I inferred the above from a code-snippet behaviour, I experienced) Thanks Vikram
Reply
Answers (
1
)
Structure Arrays?
event problem