Archive for category c#

The name ‘ ‘ does not exist in the current context

When using C Sharp (C#) and you get the following debug error:

The name ‘  ‘ does not exist in the current context

Then you need to declare the name, i.e. define its type.

No Comments

Cannot implicitly convert type ‘int’ to ‘string’

When using C Sharp (C#) and you get the following debug error:

Cannot implicitly convert type ‘int’ to ‘string’

You need to convert the variable to string from an integer variable by the following:

Convert.ToString(XXX)

Where XXX is the integer variable that needs converting to a String type variable.

, , , , , , ,

No Comments