// Use this for initialization void Start() { MyNameSpace.MyClass mc = new MyNameSpace.MyClass(); mc.MyFunction(); AnotherClassInMyNamespace AnotherClass = new AnotherClassInMyNamespace(); AnotherClass.MyFunction(); }
public ContentResult Index() { //MyNameSpace.MyClass myClass = new MyNameSpace.MyClass(); ChangedMyNameSpace.MyClass myClass = new MyNameSpace.MyClass(); myClass.Property1 = 1; myClass.Property2 = 2; return(this.Content(myClass.Mothod1().ToString())); }
void Start() { MyNameSpace.MyClass mc = new MyNameSpace.MyClass(); mc.MyFunction(); }
public void TypeConstructorTest() { var obj = new MyClass(typeof (MySecondClass)); Assert.AreEqual(typeof (MySecondClass), obj.TheType); }