MongoDB.Bson.Serialization.IdGenerators.StringObjectIdGenerator.IsEmpty C# (CSharp) Method

IsEmpty() public method

Tests whether an Id is empty.
public IsEmpty ( object id ) : bool
id object The Id.
return bool
        public bool IsEmpty(object id)
        {
            return string.IsNullOrEmpty((string)id);
        }
    }