Example #1
0
 int bits;                 //our integer
 public bool this[ind i]   //indexer
 {
     get
     {
         return(0 <= i && i < 32? (bits & 1 << i) != 0 : false);
     }
     set
     {
         if (i < 0 || i > 31)
         {
             return;
         }
         if (value)
         {
             bits |= 1 << i;
         }
         else
         {
             bits &= ~(1 << i);
         }
     }
 }
Example #2
0
 public T GetModelObject(ind id)
 {
     return(_someBusiness.GetSomeModelObject(id));
 }
 private void RentBike(int bid, ind cid)
 {
 }