Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
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
Does direct memory manipulation is an unsafe operations, if yes, how?
Manish Tewatia
13y
4.1k
0
Reply
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
13y
0
Message