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 6786543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:15:29+00:00 2026-05-26T17:15:29+00:00

I have code to implement GoF’s proxy pattern in C# . The code has

  • 0

I have code to implement GoF’s proxy pattern in C#. The code has MathProxy for calculating arithmetic functions.

The left side example is one implementation, and the right side is the better one for C# (.NET) with AppDomain.

What benefits can I expect using AppDomain especially with Proxy Pattern?

public MathProxy()
{
    // Create Math instance in a different AppDomain
    var ad =  AppDomain.CreateDomain("MathDomain", null, null);

    var o = ad.CreateInstance(
        "DoFactory.GangOfFour.Proxy.NETOptimized",
        "DoFactory.GangOfFour.Proxy.NETOptimized.Math");
    _math = (Math)o.Unwrap();
}

enter image description here

  • 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-05-26T17:15:29+00:00Added an answer on May 26, 2026 at 5:15 pm

    Any given Windows process that hosts the CLR can have one or more application domains defined that contain the executable code, data, metadata structures, and
    resources. In addition to the protection guarantees built in by the process, an application domain further introduces the following guarantees:

    • Faulty code within an application domain cannot adversely affect code running in a different application domain within the same process.
    • Code running within an application domain cannot directly access resources in a different application domain.
    • Code-specific configurations can be configured on a per application domain basis. For example, you can configure security-specific settings on a per application
      domain basis.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code that uses the shared gateway pattern to implement an inversion
I want to implement singleten design pattern in iphone code I have one array.
I have Googled merge+cell+Javascript but did not find any suitable code to implement merge
I've been trying to implement unit testing and currently have some code that does
Let's say I have to implement a piece of T-SQL code that must return
I am looking to have a C# application implement the Konami Code to display
I have my application designed with Repository pattern implemented and my code prepared for
I have a Python code from Google app engine. I need to implement it
I have some code to implement interface in C# public interface Intfc { void
We have some code that given a property name uses reflection to implement a

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.