Really interesting stuff, IL weaving is something I also want to get more literate with, in order to better understand how stuff like Moq etc. does it internally. I think you nailed the ldarg.0 vs ldarg.1 part by the way, I recently read across this again, ldarg.0 is always loading the hidden "this" parameter for non-static methods
12:12 Yep, all instance methods are (static) extension methods, so first arg is the instance itself instanceVar.Method(param) = Method(instanceVar, param) Welcome to C#
Антон, спасибо большое за контент! Скажите, пожалуйста, откуда вы черпаете всю эту инфу, из книжек или документации? А если книги, может что-нибудь подскажите? Тоже хочу достичь такого же профессионализма)
Privet, mozhno na ti ) tak 4isto iz interesa 4itaju 4uzhoj kod na github smatrju kto 4to delajet i potom v google i documentacije ishu Projavlenija lubopitstva odna iz silnih 4ert pragramista
Really interesting stuff, IL weaving is something I also want to get more literate with, in order to better understand how stuff like Moq etc. does it internally. I think you nailed the ldarg.0 vs ldarg.1 part by the way, I recently read across this again, ldarg.0 is always loading the hidden "this" parameter for non-static methods
yea, most of those libraries use the Castle Dynamic Proxy library for creating their types
12:12
Yep, all instance methods are (static) extension methods, so first arg is the instance itself
instanceVar.Method(param) = Method(instanceVar, param)
Welcome to C#
good to know
My man looking more and more like CHAD.
🙃
Great video. Are you going to tackle Roslyn/CodeDOM too?
we'll take a look at source generators, using roslyn at runtime and reflection
Rider also has the IL viewer
This is awesome
Cheers
@@RawCoding hey brother. I love your channel. Could you please tell me what editor this is? Thanks!
Антон, спасибо большое за контент! Скажите, пожалуйста, откуда вы черпаете всю эту инфу, из книжек или документации? А если книги, может что-нибудь подскажите? Тоже хочу достичь такого же профессионализма)
Privet, mozhno na ti ) tak 4isto iz interesa 4itaju 4uzhoj kod na github smatrju kto 4to delajet i potom v google i documentacije ishu
Projavlenija lubopitstva odna iz silnih 4ert pragramista
@@RawCoding Спасибо за ответ!
Wow!
Yee
What editor is he using?
Rider
Like magic
Si