Appendix D Visual Studio .NET Debugger 1325 (Virtual web hosting) //
Appendix D Visual Studio .NET Debugger 1325 // Fig. D.21: DebugClass.cs // Console application to demonstrate object debugging. using System; namespace ClassDebug { // creates array containing three different classes public class DebugEntry { public int someInteger = 123; private int[] integerArray = { 74, 101, 102, 102 }; private DebugClass debugClass; private Random randomObject; private object[] list = new object[ 3 ]; // constructor public DebugEntry() { randomObject = new Random(); debugClass = new DebugClass( “Hello World”, new object() ); list[ 0 ] = integerArray; list[ 1 ] = debugClass; list[ 2 ] = randomObject; } // display values retrieved from three objects public void DisplayValues() { Console.WriteLine( randomObject.Next() ); Console.WriteLine( debugClass.SomeString ); Console.WriteLine( integerArray[ 0 ] ); } // main entry point for application [STAThread] public static void Main() { DebugEntry entry = new DebugEntry(); entry.DisplayValues(); } } // end class DebugEntry // demonstrates class debugging public class DebugClass { // private variables private string someString; private object privateObject; Fig. D.21 Fig. D.21Fig. D.FiFi21g. D.21g.D.21Object debugging example. (Part 1 of 2.)
Looking for affordable and reliable webhost to host and run your business application? Then look no more and go to servlet web hosting services.