예제 #1
0
 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));
            }
        }
예제 #3
0
 static void Main(string[] args)
 {
     Console.WriteLine("Hello World!");
     HorseAndBuggy mule = new HorseAndBuggy();
 }
예제 #4
0
 static void Main(string[] args)
 {
     var mule = new HorseAndBuggy();
 }
예제 #5
0
 static void Main(string[] args)
 {
     HorseAndBuggy mul = new HorseAndBuggy();
 }
예제 #6
0
파일: Program.cs 프로젝트: usedflax/flaxbox
 static void Main(string[] args)
 {
     HorseAndBuggy mule = new HorseAndBuggy();
 }
예제 #7
0
 private static void Main()
 {
     var mule = new HorseAndBuggy();
 }
예제 #8
0
        static void Main(string[] args)
        {
            HorseAndBuggy mule = new HorseAndBuggy();

            Console.Read();
        }