コード例 #1
0
ファイル: Attributes.cs プロジェクト: walrus7521/code
 static void Main()
 {
     HorseAndBuggy hb = new HorseAndBuggy();
     Motorcycle mc = new Motorcycle();
     Winnebago win = new Winnebago();
     ReflectOnAttributesEarlyBinding();
     ReflectOnAttributesLateBinding();
 }
コード例 #2
0
        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
ファイル: Program.cs プロジェクト: maziesmith/.NetCSharp
 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
ファイル: Program.cs プロジェクト: simple555a/DotNetAppDev
 private static void Main()
 {
     var mule = new HorseAndBuggy();
 }
コード例 #8
0
        static void Main(string[] args)
        {
            HorseAndBuggy mule = new HorseAndBuggy();

            Console.Read();
        }