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

  • Home
  • SEARCH
  • 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 8618345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:05:08+00:00 2026-06-12T06:05:08+00:00

I know that .NET Remoting has been replaced by WCF, but this is more

  • 0

I know that .NET Remoting has been replaced by WCF, but this is more of an academic question than anything else.

Suppose that you have a remotable class that is defined as follows:

public class MyObject : MarshalByRefObject
{
}

And suppose that you have client code that instantiates a remotable object of type MyObject but does not use it as a remotable object:

public static void Main(String[] args)
{
   MyObject mo = new MyObject();
}

Now, suppose that I want to programmatically tell the type of mo. There are, as far as I know, two ways to do it:

Console.WriteLine(mo.GetType().ToString());//MyObject

or

Console.WriteLine(GetType(mo).ToString()); //MyObject

where GetType() is defined as follows:

static Type GetType<T>(T t)
{
   return typeof(T);
}

In either case the compile time type and the runtime type of mo is MyObject.

But now suppose that I have client code that actually uses an instance of MyObject as a remotable object:

public static void Main(String[] args)
{
   System.Runtime.Remoting.RemotingConfiguration.Configure("Client.exe.config");
   MyObject mo = new MyObject();
}

If I want to know the type of mo I can use any of the two methods I used above, and get the same results. However, when I place a breakpoint and hit F5, Visual Studio tells me that the type of mo is actually MyObject {System.Runtime.Remoting.Proxies.__TransparentProxy}

What I want to know is how to tell, programmatically, that the underlying type of mo is __TransparentProxy.

  • 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-12T06:05:10+00:00Added an answer on June 12, 2026 at 6:05 am
    bool isProxy = System.Runtime.Remoting.RemotingServices.IsTransparentProxy(obj);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Like you know, .NET Remoting has some limits, one of them is that server
I know this has been asked a lot, but I have a server-side custom
Yes, I know that general forms of this question have been asked time and
i know that .NET String class uses such behaviour, but I can't find any
i know that in vb.net you can just do Exit Sub but i would
I know that .NET assembly is self-descriptive because of the metadata. Now suppose I
I know that ASP.NET MVC 1.0 is bin-deployable as explained in Phil Haack's article.
I know that the static objects in .Net managed world are loaded in Loader
I know that the reason that Microsoft came out with ASP.NET MVC was to
We know that behind the scenes, the ASP.NET MVC framework will use reflection to

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.