namespace common
{
public static class MyExtensions
{
public static string stringextmethod(this string uri)
{
}
}
}
namespace commonCore
{
public static class MyExtensions
{
public static string stringextmethod(this string uri)
{
}
}
}
I have a class that refer both namespaces above, now when I try to use 'stringextmethod' I am getting an error 'Overload resolution failed..' How can I use extension method 'stringextmethod' from 'common' namespace only.