I get an error Cannot intercept method 'Enum.ToString(string?)' with interceptor 'EnumInterceptors.SportIdExtensionsToString(Enum)' because the signatures do not match.
for type:
[EnumExtensions]
public enum SportId : ushort
{
Cricket = 4,
Soccer = 1,
Tennis = 2,
[Display(Name = "Horse Race")]
HorseRace = 7
}
it is for .NET 10 with 1.0.0-beta21 when I am using extension:
public static class SportIdMoreExtensions
{
public static string AsBetfairTypeId(this SportId id) => id.ToString("d");
}
can you advice the workaround for this method?
I get an error
Cannot intercept method 'Enum.ToString(string?)' with interceptor 'EnumInterceptors.SportIdExtensionsToString(Enum)' because the signatures do not match.for type:
it is for .NET 10 with 1.0.0-beta21 when I am using extension:
can you advice the workaround for this method?