Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. cannot convert from 'System.Guid?' to 'System.Guid'
  2.  
  3. Obj GetValue(Guid yourID)
  4. {
  5. return FetchObject(yourID)
  6. }
  7. Void main()
  8. {
  9. Guid? passvalue;
  10. Obj test = GetValue(passvalue.Value);
  11. }
  12.  
  13. Guid yourGuid= Guid.NewGuid()
  14.  
  15. Guid defaultId = Guid.NewGuid();
  16. if (customerRow.GuardianState.Length > 2) {
  17. Guid StateId = record.StateId ?? defaultId;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement