class MyClass{ public MyClass(ref int RefToObject){ OwnRef = RefToObject; } public ref int OwnRef; } void main(){ int a = 10; MyClass b = new MyClass(ref a); }