How do I convert int? into int

Posted by Richard77 on Stack Overflow See other posts from Stack Overflow or by Richard77
Published on 2010-06-14T19:16:12Z Indexed on 2010/06/14 19:22 UTC
Read the original article Hit count: 256

Filed under:
|

Hello,

I've create a SPROC that saves an object and returns the id of the new object saved. Now, I'd like to return an int not an int?

public int Save(Contact contact)
{
  int? id;
  context.Save_And_SendBackID(contact.FirstName, contact.LastName, ref id);
  //How do I return an int instead of an int?
}

Thanks for helping

© Stack Overflow or respective owner

Related posts about c#

Related posts about linq-to-sql