Inspired by this SO question:
Why doesn’t C# have a keyword for non-virtual calling convention?
EDIT: I mean “why is there no keyword for non-virtual IL calls, given that the C# compiler always uses IL virtual calls by default”?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This might explain it: Link
Shortly:
callinstruction can acceptnullasthispointer (as it is in C++). This is errorsome and C# team decided to usecallvirtwherever it is possible so that calls onnullpointers throwNullReferenceException