Hi I have a project that was created in a previous version to 3.5. I since then ran the wizard to upgrade it to 3.5. After I did this I built the project but it has an error. The error is that a Guid is trying to access the properties HasValue and Value:
if(theGuid.HasValue)
{
id = theGuid.Value
}
The errors are 'System.Guid' does not contain a definition for 'HasValue' and no extension method 'HasValue' accepting a first argument of type 'System.Guid' could be found (are you missing a using directive or an assembly reference?)
The error is similiar for the Value property.
Can someone please tell me what's going on? Is it a property that was taken out of the framework? If so what could I replace it with?
Thanks!