/// <summary> /// Returns a value that indicates whether the current instance and a specified <see cref="CommandLine.Text.Example"/> have the same value. /// </summary> /// <param name="other">The <see cref="CommandLine.Text.Example"/> instance to compare.</param> /// <returns><value>true</value> if this instance of <see cref="CommandLine.Text.Example"/> and <paramref name="other"/> have the same value; otherwise, <value>false</value>.</returns> public bool Equals(Example other) { if (other == null) { return(false); } return(HelpText.Equals(other.HelpText) && FormatStyles.SequenceEqual(other.FormatStyles) && Sample.Equals(other.Sample)); }
public static string Format(TheravadaCalendar tc, FormatStyles styles) { //sirisakyamunino tathagataparinibbana switch(styles) { case (FormatStyles.VeryVerbose): return "sirisakyamunino tathagataparinibbana" + tc.BuddhistYear.ToString() + " vasse, " + ((BuddhistMonths)tc.BuddhistMonth).ToString() + "mase, " + tc.BuddhistDay.ToString() + ". " + ((BuddhistFortnights)tc.BuddhistFortnight).ToString(); case (FormatStyles.Verbose): return "Sirisugataparinibbana " + tc.BuddhistYear.ToString() + " vasse, " + ((BuddhistMonths)tc.BuddhistMonth).ToString() + "mase, " + tc.BuddhistDay.ToString() + ". " + ((BuddhistFortnights)tc.BuddhistFortnight).ToString(); case (FormatStyles.Short): return tc.BuddhistYear.ToString() + "-" + tc.BuddhistMonth.ToString() + "-" + tc.BuddhistFortnight.ToString() + "-" + tc.BuddhistDay.ToString(); case (FormatStyles.VeryShort): return ""; } return ""; }