Exemplo n.º 1
0
 /// <summary>
 ///     クラスの利用
 /// </summary>
 /// <param name="args"></param>
 private static void Main(string[] args)
 {
     MyDate date;
     date = new MyDate();
     date.year = 2004;
     date.month = 2;
     date.day = 7;
     PrintDate(date);
 }
Exemplo n.º 2
0
        /// <summary>
        ///     クラスの利用
        /// </summary>
        /// <param name="args"></param>
        private static void Main(string[] args)
        {
            MyDate date;

            date       = new MyDate();
            date.year  = 2004;
            date.month = 2;
            date.day   = 7;
            PrintDate(date);
        }
Exemplo n.º 3
0
 /// <summary>
 ///     display date
 /// </summary>
 /// <param name="date">MyDate Class</param>
 private static void PrintDate(MyDate date)
 {
     Console.WriteLine("{0:D4}年{1:D2}月{2:D2}日", date.year, date.month, date.day);
 }
Exemplo n.º 4
0
 /// <summary>
 ///     display date
 /// </summary>
 /// <param name="date">MyDate Class</param>
 private static void PrintDate(MyDate date)
 {
     Console.WriteLine("{0:D4}年{1:D2}月{2:D2}日", date.year, date.month, date.day);
 }