Skip to content

EnumInterceptors build error #251

Description

@arteny

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions