Anyone can explain the major use of MarshalByRefObject

What’s the purpose for MarshalByRefObject?

Can anyone explain output

#define power(a) #a int main() { printf(%d,*power(432)); return 0; } can anyone explain the o/p?? the o/p is 52

can anyone explain the output?

Can anyone explain the output? #include<iostream> using namespace std; int &fun(){ static int x = 10; return x; } int main(){ fun() = 30; cout << fun(); return 0; } output is 30

Can anyone explain the following PHP Code?

Can anyone explain the following PHP Code ? function get_param($param_name, $param_type = 0) { global $HTTP_POST_VARS, $HTTP_GET_VARS; $param_value = ; if (isset($_POST)) { if (isset($_POST[$param_n

Can anyone explain this snippet of Javascript?

Can anyone explain the following code? Forget the sine and cosine parts. Is it trying to build a space for the object? objectsInScene = new Array(); for (var i=space; i<180; i+=space) { for (var an

Can anyone explain the following PHP Code?

Can anyone explain what the following PHP Code does function query($query_string) { if ($query_string == ) { return 0; } if (!$this->connect()) { return 0; }; if ($this->QueryID) { $this-&gt

Can anyone explain how this constraint functions?

Can anyone explain how this constraint functions and how its affects insertion of records into this table? Running win sql 2k5. Having issue with trying to insert data. ALTER TABLE [dbo].[ws_shiptabl

Can anyone explain what this string means?

Can anyone help me explain what this string means? KeyWord=%EC%E5%EB%E8%F1%F1%E0 I want to understand what is this? Is it hexadecimal or this string is encrypted by some keys?

Can anyone explain IEnumerable and IEnumerator to me?

Can anyone explain IEnumerable and IEnumerator to me? for example, when to use it over foreach? what’s the difference between IEnumerable and IEnumerator? Why do we need to use it?

Can anyone explain to me what the purpose of /dev/tty

Can anyone explain what the purpose or how to use /dev/tty

Can anyone explain how to intergrate flash and flex?

I am looking for some decent tutorial that will explain the correlation between flash and flex (how can I use flex’s coding ability with flash’s design interface). If anyone can point me out to some g


Remoting; it means that between AppDomains or machines, rather than serialize and transfer the object, the object stays at one end and a proxy is created at the other. All method calls to the proxy are intercepted and the call is transmitted as RPC wiki, msdn, causing the method to execute on the other machine (typically serialising the arguments and return value).

Note: this can lead to unexpectedly “chatty” interfaces. The object/proxy/RPC approach is now less preferable to approaches with an explicit service boundary; Microsoft now recommends WCF wiki, msdn instead of remoting.

it basic use is for support access of objects between two appdomains and these appdomains can be on the same computer or in the different computers via remoting.

See Here

Another important use of MarshalByRefObject is for implementing AOP via remoting sink-chains.

If you have an object that derives from ContextBoundObject (which itself derives from MarshalByRefObject) you can instantiate it in a separate Context within the same AppDomain and have communications between objects automatically go through the Remoting proxy system – allowing you to plug custom sinks into the Remoting sink-chain.

This ultimately allows you to ‘decorate’ method calls to your objects and implement cross-cutting services, such as logging and security etc.