Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
1
Reply
Reply
Does direct memory manipulation is an unsafe operations, if yes, how?
Manish Tewatia
Apr 19, 2011
4.1k
0
Submit
Yes, direct memory manipulation is an unsafe operation in .NET because the CLR can't be sure what effect direct writes to memory will have on existing structures and so can't give any guarantees about its safety. This is why any code that uses unmanaged pointers needs to be marked as 'unsafe' when using C#.
Vulpes
April 19, 2011
0