In the following, is it better to have this?
public static void InsertNewItemsAndGetPrimaryKeyWithCheck(List<ArrayList> alStrSQL, List<ArrayList> al, ref object objIdentity)
{
objIdentity = null;
code....
}or this?
public static void InsertNewItemsAndGetPrimaryKeyWithCheck(List<ArrayList> alStrSQL, List<ArrayList> al, ref object objIdentity)
{
objIdentity = 0
code....
}
The first one returns null if it doesn't work, and the second one returns 0.
Which is a best practices?