/// <summary> /// Formats the given value as text according to the rules of this pattern, /// appending to the given <see cref="StringBuilder"/>. /// </summary> /// <param name="value">The value to format.</param> /// <param name="builder">The <c>StringBuilder</c> to append to.</param> /// <returns>The builder passed in as <paramref name="builder"/>.</returns> public StringBuilder AppendFormat(LocalDate value, StringBuilder builder) => UnderlyingPattern.AppendFormat(value, builder);
/// <summary> /// Parses the given text value according to the rules of this pattern. /// </summary> /// <remarks> /// This method never throws an exception (barring a bug in Noda Time itself). Even errors such as /// the argument being null are wrapped in a parse result. /// </remarks> /// <param name="text">The text value to parse.</param> /// <returns>The result of parsing, which may be successful or unsuccessful.</returns> public ParseResult <LocalDate> Parse([SpecialNullHandling] string text) => UnderlyingPattern.Parse(text);
/// <summary> /// Formats the given local date as text according to the rules of this pattern. /// </summary> /// <param name="value">The local date to format.</param> /// <returns>The local date formatted according to this pattern.</returns> public string Format(LocalDate value) => UnderlyingPattern.Format(value);
/// <summary> /// Formats the given value as text according to the rules of this pattern, /// appending to the given <see cref="StringBuilder"/>. /// </summary> /// <param name="value">The value to format.</param> /// <param name="builder">The <c>StringBuilder</c> to append to.</param> /// <returns>The builder passed in as <paramref name="builder"/>.</returns> public StringBuilder AppendFormat(YearMonth value, StringBuilder builder) => UnderlyingPattern.AppendFormat(value, builder);
/// <summary> /// Formats the given year/month as text according to the rules of this pattern. /// </summary> /// <param name="value">The value to format.</param> /// <returns>The year/month formatted according to this pattern.</returns> public string Format(YearMonth value) => UnderlyingPattern.Format(value);
/// <summary> /// Parses the given text value according to the rules of this pattern. /// </summary> /// <remarks> /// This method never throws an exception (barring a bug in Noda Time itself). Even errors such as /// the argument being null are wrapped in a parse result. /// </remarks> /// <param name="text">The text value to parse.</param> /// <returns>The result of parsing, which may be successful or unsuccessful.</returns> public ParseResult <YearMonth> Parse([SpecialNullHandling] string text) => UnderlyingPattern.Parse(text);
/// <summary> /// Formats the given value as text according to the rules of this pattern, /// appending to the given <see cref="StringBuilder"/>. /// </summary> /// <param name="value">The value to format.</param> /// <param name="builder">The <c>StringBuilder</c> to append to.</param> /// <returns>The builder passed in as <paramref name="builder"/>.</returns> [NotNull] public StringBuilder AppendFormat(AnnualDate value, [NotNull] StringBuilder builder) => UnderlyingPattern.AppendFormat(value, builder);
/// <summary> /// Formats the given annual date as text according to the rules of this pattern. /// </summary> /// <param name="value">The annual date to format.</param> /// <returns>The annual date formatted according to this pattern.</returns> [NotNull] public string Format(AnnualDate value) => UnderlyingPattern.Format(value);