Difference between methods with and without generics

Posted by isakavis on Stack Overflow See other posts from Stack Overflow or by isakavis
Published on 2013-10-25T03:43:26Z Indexed on 2013/10/25 3:54 UTC
Read the original article Hit count: 105

Filed under:

Can someone help me understand advantages and disadvantages (if any) between the following methods which do the same function of storing away the entity to azure (in my case)?

public bool Save<T>(string tableName, T entity) where T : TableEntityBase, new()
{
    throw new NotImplementedException();
}

vs

public bool Save(string tableName, TableEntityBase entity)
{
    throw new NotImplementedException();
}

© Stack Overflow or respective owner

Related posts about c#