static void Main() { HorseAndBuggy hb = new HorseAndBuggy(); Motorcycle mc = new Motorcycle(); Winnebago win = new Winnebago(); ReflectOnAttributesEarlyBinding(); ReflectOnAttributesLateBinding(); }
static void Main() { HorseAndBuggy mule = new HorseAndBuggy(); mule.GetType(); Motorcycle motorcycle = new Motorcycle() { weightOfCurrentPassengers = 150.5F, }; FieldInfo[] motorcycleInfo = motorcycle.GetType().GetFields(); foreach (FieldInfo f in motorcycleInfo) { WriteLine(f.Name + ": " + f.GetValue(motorcycle)); } }
static void Main(string[] args) { Console.WriteLine("Hello World!"); HorseAndBuggy mule = new HorseAndBuggy(); }
static void Main(string[] args) { var mule = new HorseAndBuggy(); }
static void Main(string[] args) { HorseAndBuggy mul = new HorseAndBuggy(); }
static void Main(string[] args) { HorseAndBuggy mule = new HorseAndBuggy(); }
private static void Main() { var mule = new HorseAndBuggy(); }
static void Main(string[] args) { HorseAndBuggy mule = new HorseAndBuggy(); Console.Read(); }