Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 8th, 2005, 04:03 PM
Authorized User
 
Join Date: Dec 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Definition

Could someone please help. I am new to programming and I often hear the term wrapper used to refer to a class or in one case it was used to refer to a copy of an array. WHAT IS A WRAPPER?

Any insight would be helpful!

Good Day,

Little Shell

 
Old October 10th, 2005, 08:18 AM
Registered User
 
Join Date: Oct 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

how do i develop a program that converts two world currencies and show fluctuation history in a graph

 
Old October 10th, 2005, 04:40 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
quote:Originally posted by Little Shell
WHAT IS A WRAPPER?
A wrapper class is a class which typically contains another class, thus "wrapping" the functionality of one class inside another. This is also called the "facade" design pattern.

It is used to perhaps hide some of the functionality of the contained class. The containing, or wrapper, class exposes only the functionality of the contained class that it needs to.

Sometimes, a wrapper is provided to simplify the interface to the contained class. For example, a class that sends an email might have properties and methods to separately set the sender, receiver, subject, and message body, and then send the message. To make interacting with this class easier, I might devise a wrapper class around an email object that exposes a single send method taking these values as parameters and "behind the scenes" creates the email class, sets all the properties as appropriate and sends the message. Thus, my class is much easier to use than the original email class, since I expose only a single method and I don't have to bother the user of the class with all the messy details of setting up and sending the email.

The entire .NET framework can be considered a wrapper around the WIN32 API...

Jeff Mason
Custom Apps, Inc.
www.custom-apps.com
 
Old October 12th, 2005, 07:34 AM
Authorized User
 
Join Date: Dec 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Jeff,

Thank you for your clear explanation; you've been a big help.

Little Shell






Similar Threads
Thread Thread Starter Forum Replies Last Post
'Table' does not contain a definition for 'BorderS [email protected] C# 2005 1 September 13th, 2008 03:08 AM
Table definition for CreateUserWizard kutel ASP.NET 2.0 Basics 3 July 25th, 2007 09:57 AM
Find definition of a type ag19702004 Visual Studio 2005 0 October 2nd, 2006 05:21 PM
Trying to retrieve definition of the primary key a method Access VBA 1 April 28th, 2005 02:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.