This C# error probably means that you have tried to call a function without parethesis after it. For example, typing:
GetTaxes;
Instead of:
GetTaxes();
Showing posts with label syntax errors. Show all posts
Showing posts with label syntax errors. Show all posts
Friday, April 18, 2008
Wednesday, July 11, 2007
Cannot implicitly convert type 'string' to 'method group'
I run into this now and again in C#: Cannot implicitly convert type 'string' to 'method group'
This usually means that you have not included the parenthesis at the end of a method call. For example, ToString(). Many times I will do:
if (str == var.ToString)
or
str = var.ToString;
It throws the about error because I needed to do:
if (str == var.ToString())
or
str = var.ToString();
This usually means that you have not included the parenthesis at the end of a method call. For example, ToString(). Many times I will do:
if (str == var.ToString)
or
str = var.ToString;
It throws the about error because I needed to do:
if (str == var.ToString())
or
str = var.ToString();
Subscribe to:
Posts (Atom)