Introduction to unsafe C#: Calling native code and crashing in entirely new ways - Dennis Dietrich
ฝัง
- เผยแพร่เมื่อ 20 ก.ย. 2024
- This talk was recorded at NDC Porto in Porto, Portugal. #ndcporto #ndcconferences #csharp #developer #softwaredeveloper
Attend the next NDC conference near you:
ndcconferences...
ndcporto.com/
Subscribe to our TH-cam channel and learn every day:
/@NDC
Follow our Social Media!
/ ndcconferences
/ ndc_conferences
/ ndc_conferences
Does your C# code have enough access violations? How about mutating supposedly immutable strings? No? What about buffer overflows or heap corruptions? Learn how to do all of this in pure C#, no C or C++ required! In this talk, we’ll be looking at pointers, unions, unmanaged memory, implementing IDisposable and finalizers, and how to call and be called by native code.
I love how this shows up in my feed exactly as I need to learn how to call a C library in C#
Thanks to everyone who's commented so far. I went through several iterations of this talk and spent a lot of time updating and refining the content. It makes me very happy that all this effort paid off.
the idea to use sqlite as an example is just brilliant. it's not trivial jet intuitive.
I have been p/invoking for a long time. Lots of hardware manufactures just release a dll with c headers to interact with their hardware.
This talk is a very good summary of the things I encountered. Some parts had to be cut short because of the time, but it is nice to see to much useful information in a 60 minutes time. Well done Dennis!
Zero comments? WTF is wrong with you people ? This is amazing!
Great talk, thanks!
Very good talk!
for 15 yrs of .net programming just faced a win32 pinvoke, but always love to see something unsafe like this )