I created a string extension method
public static string ShortID(this string id)
{
return id.Substring(5);
}
When I want to compare two strings using this extension method like this
if(Id.ShortID == IdDest.ShortID)
I have an error :
CS0019: impossible to apply operator == to operands of type "group of methods" and "group of methods"
I don't understand why, because this extension method returns a string so logically I could compare the results as strings no ?