Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface IMyType
- {
- string SayHello();
- string BaseTypeMethodIWantToUse();
- }
- public class MyType : MyBaseType, IMyType
- {
- public string SayHello()
- {
- return "Hello!";
- }
- }
- public class MyRemoteableType : MarshalByRefObject, IMyType
- {
- private MyType _instance = new MyType();
- public string SayHello()
- {
- return _instance.SayHello();
- }
- public string BaseTypeMethodIWantToUse()
- {
- return _instance.BaseTypeMethodIWantToUse();
- }
- }
Add Comment
Please, Sign In to add comment