Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9032883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T08:05:24+00:00 2026-06-16T08:05:24+00:00

Suppose I needed to develop a wrapper assembly that allows the use of any

  • 0

Suppose I needed to develop a wrapper assembly that allows the use of any one of several underlying frameworks. The latter could be for data access, graphics, or whatever. This is assuming that all of the underlying libraries offer essentially the same functionality but, for whatever reason, you may have to use one or the other of them in different circumstances.

The caller would wish to code to a single specification and swap in whichever underlying framework was to be used, without making source changes.

What language and framework features in C# and .NET can best avoid maintaining multiple copies of the wrapper class library, since that redundancy would result in the need to make multiple updates for fixes and enhancements to the wrapper API? C# interfaces and delegates are two features that come to mind.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T08:05:25+00:00Added an answer on June 16, 2026 at 8:05 am

    You would create the outline for the wrapper using Interfaces.

    You would then implement those interfaces for each wrapper which uses the specific underlying frameworks.

    The individual wrappers could then easily be swapped in and out for each other without having to change the calling code.

    Depending on your needs, you could also using configuration values to dynamically instantiate a given wrapper at runtime. This would allow you to swap the wrappers without needing to recompile your code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have a ViewGroup that can contain several optional children views, say a
Suppose that there are 2*n disks, How could be Hanoi problem solved if odd
Suppose you have a long, complicated query to pull needed results that takes some
Suppose I have a pure virtual method in the base interface that returns to
Suppose I have a static method of my class that returns an object of
Suppose we have the name written in any none-latin letters - languages, like Arabic,
Suppose I have a class Baz that inherits from classes Foo and Bar ,
Suppose I have a process that is updating a record and encounters a record
Suppose I have the following function, the value it produces is needed by many
Suppose that I am writing two applications for my employer, we'll call them App1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.