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); }
public static void StaticVoidMethodObjArg(InternalClass objArg) { { Console.WriteLine(objArg.StrVal); } }
public void VoidMethodObjArg(InternalClass objArg) { this.intClassObj = objArg; Console.WriteLine(this.intClassObj.StrVal); this.isVoidMethodObjArgTrue = true; }