Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# wrapper

C# wrapper

Scheduled Pinned Locked Moved C#
questioncsharp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    amitmohanty
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • A amitmohanty

      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

      S Offline
      S Offline
      Super Lloyd
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups