taskspeeddownload.blogg.se

Cannot be applied to
Cannot be applied to










cannot be applied to

So, if you got the customerProfileId from user input (like a form field or URL) you should validate it first. The downside of this is that the conversion from string to Guid will throw an exception if it's not formatted correctly. If it can be either format, you may be better off converting customerProfileId to a guid: new Guid(customerProfileId). If you decide to convert C.CustomerId to a string make sure you know what format customerProfileId is in. ToString() on the variable, but it's important to know that there's more than one way to format the Guid. Either convert the string to a Guid or the Guid to a string.Ĭonverting a Guid to string is as easy as calling. You cannot compare a Guid to a string directly.












Cannot be applied to