1

So I have an extension method on string in assembly A.

Lets say it looks like this:

public static ToSomething(this string value, string somethingElse){...}

Now I have the exact same ToSomething method in assembly B which I am referencing as well.

I get the following error: Ambigous invocation: A ToSomething, B ToSomething match

Is there a way to specify which extension method you use since theyre both valid and both allowed to be referenced?

ThatBrianDude
  • 2,952
  • 3
  • 16
  • 42

0 Answers0