Пример #1
0
        public static InternalClass StaticObjMethodIntArg(int intArg)
        {
            InternalClass classObj;

            if (intArg == IntArgDef)
            {
                classObj = new InternalClass();
                return(new InternalClass());
            }
            classObj        = new InternalClass();
            classObj.StrVal = "Interal object failed";
            return(classObj);
        }
Пример #2
0
 public static void StaticVoidMethodObjArg(InternalClass objArg)
 {
     {
         Console.WriteLine(objArg.StrVal);
     }
 }
Пример #3
0
 public void VoidMethodObjArg(InternalClass objArg)
 {
     this.intClassObj = objArg;
     Console.WriteLine(this.intClassObj.StrVal);
     this.isVoidMethodObjArgTrue = true;
 }