Monday, March 10, 2014

Debug and trace in C#

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Diagnostics; // need this to use the Debug class namespace DebugAndTrace {     class Program     {         static void Main(string[] args)  ...

Garbage collection in c#

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace GarbageCollection {     class Program     {         static void Main(string[] args)         {             Console.WriteLine("Allocated...

Variable Param in c#

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace VariableParams {     class Program     {         static void Main(string[] args)         {             int result;  ...

Using Events iN C#

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace UsingEvents {     public delegate void myEventHandler(string newValue);     class EventExample     {         private string theValue;  ...