Example #1
0
    static void Main(string[] args)
    {
        var g = new GlorifiedInt(7);

        g.Bits[0] = false;
        Console.WriteLine(g.Value);     // prints "6"
    }
    static void Main(string[] args)
    {
        var g = new GlorifiedInt(7);

        g.Bits[0] = 0;
        Console.WriteLine("g is " + g.Value);     // prints "6"
        for (int i = 3; i >= 0; i--)
        {
            Console.Write(g.Bits[i]);     // prints "0110"
        }
        Console.WriteLine();
    }
 public BitAccessor(GlorifiedInt glorified)
 {
     gi = glorified;
 }