I can't figure out why I'm getting this error. I only have one class with one method in my project that looks like:
public static class Extensions
{
public static string Chop(this string s, int length)
{
...
return "";
}
}
I'm calling this in my View like so: @item.PostContent.Chop(20)
It's giving me a compiler error:
The call is ambiguous between the following methods or properties: 'Extensions.Chop(string, int)' and 'Extensions.Chop(string, int)'
Any help is appreciated. Thank you.