예제 #1
0
	// Use this for initialization
	void Start()
	{
		MyNameSpace.MyClass mc = new MyNameSpace.MyClass();
		mc.MyFunction();
		AnotherClassInMyNamespace AnotherClass = new AnotherClassInMyNamespace();
		AnotherClass.MyFunction();
	}
예제 #2
0
    // 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()));
 }
예제 #4
0
 void Start()
 {
     MyNameSpace.MyClass mc = new MyNameSpace.MyClass();
     mc.MyFunction();
 }
예제 #5
0
 public void TypeConstructorTest()
 {
     var obj = new MyClass(typeof (MySecondClass));
     Assert.AreEqual(typeof (MySecondClass), obj.TheType);
 }