Wednesday, 19 June 2019

C# - Fix Error - Guid.NewGuid()' is a method, which is not valid in the given context


Watch this example on YouTube


Guid.NewGuid()' is a method, which is not valid in the given context
also
The name 'guid' does not exist in the current context

To fix it replace

string test = guid.NewGuid.ToString();
wtih
string test = Guid.NewGuid().ToString();

No comments:

Post a Comment