本文整理汇总了C#中Methods.Student.BirthDate方法的典型用法代码示例。如果您正苦于以下问题:C# Student.BirthDate方法的具体用法?C# Student.BirthDate怎么用?C# Student.BirthDate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Methods.Student
的用法示例。
在下文中一共展示了Student.BirthDate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
public static void Main()
{
Console.WriteLine(CalcTriangleArea(3, 4, 5));
Console.WriteLine(DigitToEnglishWord(5));
Console.WriteLine(FindMax(5, -1, 3, 2, 14, 2, 3));
Print.AsFloatNumber(1.3);
Print.AsPercent(0.75);
Print.RightAlignedNumber(2.30);
Point firstPoint = new Point() { X = 3, Y = -1 };
Point secondPoint = new Point() { X = 3, Y = 2.5 };
Console.WriteLine(CalculateDistance(firstPoint, secondPoint));
Console.WriteLine("Horizontal? " + IsHorizontalLine(firstPoint, secondPoint));
Console.WriteLine("Vertical? " + IsVerticalLine(firstPoint, secondPoint));
Student peter = new Student("Peter", "Ivanov", "From Sofia, born at 17.03.1992");
Student stella = new Student("Stella", "Markova", "From Vidin, gamer, high results, born at 03.11.1993");
Console.WriteLine("{0} older than {1} -> {2}", peter.FirstName, stella.FirstName, peter.BirthDate().IsEarlierThan(stella.BirthDate()));
}