Skip to content

Instantly share code, notes, and snippets.

Last active Dec 16, 2017
What would you like to do?
Ye olde NRE from a ctor call
using System;
using System.Runtime.Remoting.Proxies;
internal class Program
private static void Main(string[] args)
var c = new CrazyObject();
public class CrazyObject : ContextBoundObject
public string Hello() => "Hello Back";
public class SillyAttribute : ProxyAttribute
public override MarshalByRefObject CreateInstance(Type serverType) => null;