コード例 #1
0
 /// <summary>
 /// Verifies the exists.
 /// </summary>
 private void VerifyExists()
 {
     if (!GunSmiths.Exists(_databasePath, _gunSmithName, out _errOut))
     {
         bool value = GunSmiths.Add(_databasePath, _gunSmithName, out _errOut);
     }
 }
コード例 #2
0
 /// <summary>
 /// Verifies the doesnt exist.
 /// </summary>
 private void VerifyDoesntExist()
 {
     if (GunSmiths.Exists(_databasePath, _gunSmithName, out _errOut))
     {
         long id    = GunSmiths.GetId(_databasePath, _gunSmithName, out _errOut);
         bool value = GunSmiths.Delete(_databasePath, id, out _errOut);
     }
 }