Skip to content

Commit

Permalink
Suppress warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamco committed Nov 5, 2024
1 parent 42fcffe commit 2f4e12f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,14 @@ public override bool Equals(FluidValue other)

public override string ToStringValue() => _culture.Name;

#pragma warning disable CS0672 // Member overrides obsolete member
public override void WriteTo(TextWriter writer, TextEncoder encoder, CultureInfo cultureInfo)
#pragma warning restore CS0672 // Member overrides obsolete member
=> writer.Write(ToStringValue());

public async override ValueTask WriteToAsync(TextWriter writer, TextEncoder encoder, CultureInfo cultureInfo)
=> await writer.WriteAsync(ToStringValue());

protected override FluidValue GetValue(string name, TemplateContext context)
=> name switch
{
Expand Down

0 comments on commit 2f4e12f

Please sign in to comment.