I am trying to use a trial version of a third-party software written in C #. While I try to use its API, I am facing a strange problem.
I am using visual studio 2015 and I found an interesting extended method signature in my API SDK
public static class CallExtendedInfoEx { public static void AddToSIPMessage(this CallExtendedInfo info, msg); }
The second type of parameter does not exist . It has never been seen in C #. I am trying to give the general parameter Object as the second parameter, and C # Compiler gives a weird error
Severity Code Description Project File Line
Error CS1503 Argument 2: Cannot convert from 'object' to '.'
It works with "null" ... No compiler error or runtime error [ignored, I think]
How can these guys write such code in C #? Is it possible? Any idea?
Note. I suspect the problem is with code shading ... But still, I donβt understand what is going on here.
IL_0073: call void [CallExtendedInfoEx::AddToSIPMessage(class [VoIP.CallExtendedInfo, class [VoIPSDK]''.'')
Hippias minor
source share