CSMongo.MongoDocument.GenerateId C# (CSharp) Method

GenerateId() public method

Creates an Oid for this document - MongoDB will automatically create an Oid when needed
public GenerateId ( ) : MongoOid
return MongoOid
        public MongoOid GenerateId()
        {
            this.Id = new MongoOid();
            return this.Id;
        }