Wrapper Class

  • Thread starter Thread starter sureshjram
  • Start date Start date
S

sureshjram

Hi all ,

What is a Wrapper Class in c#?? I am new to this OOPS plz explain it

thanks in advance

regards
Suresh
 
A Wrapper Class usually "wraps" some kind of functionality that'd be
otherwise hard to use. You see this term often when talking about COM
interop (you generate a .NET Wrapper for a COM object, so you can use the
COM object as if it were a .NET object, and all the interop details are
hidden). Sometimes people will use this term in general, to say it "wraps"
something, like accessing data. Or, you could have a wrapper for some Win32
API calls (For instance a DPAPI Wrapper Class would expose safe C# methods
to call CryptProtectData and CryptUnprotectData).

-mike
MVP

sureshjram said:
Hi all ,

What is a Wrapper Class in c#?? I am new to this OOPS plz explain it

thanks in advance

regards
Suresh
 
Back
Top