C# wrapper
-
I have come across this wrapper word many times. Many people have written wrappers for C# for subrountines which are not written in C#. My question is what this wrapper is and how it can be used as to include other sub-routines in a C# application?. Regards and Thanks, Amit
-
I have come across this wrapper word many times. Many people have written wrappers for C# for subrountines which are not written in C#. My question is what this wrapper is and how it can be used as to include other sub-routines in a C# application?. Regards and Thanks, Amit
Basically in C# you can call directly into C function that's "easy" thanks to interop! But you still have to declare the C function in C#, with correct data structure, sometimes it's not so trivial toredefine in .NET the C data structure. You might also have many function to re-declare, quite tedious, particularly if there is, let's say, hundreds of them!. And you might as well simplify the C# API compare to the C API. It's what a wrapper is for.