Skip to content

Commit

Permalink
Mark WriteTo() virtual (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamco authored Nov 6, 2024
1 parent c9fe53c commit 545aa83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Fluid/Values/FluidValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ public abstract class FluidValue : IEquatable<FluidValue>
#pragma warning restore CA1067
{
[Obsolete("WriteTo is obsolete, prefer the WriteToAsync method.")]
public abstract void WriteTo(TextWriter writer, TextEncoder encoder, CultureInfo cultureInfo);
public virtual void WriteTo(TextWriter writer, TextEncoder encoder, CultureInfo cultureInfo)
{
}

public virtual ValueTask WriteToAsync(TextWriter writer, TextEncoder encoder, CultureInfo cultureInfo)
{
Expand Down

0 comments on commit 545aa83

Please sign in to comment.