Showing posts with label Example of getting value in Bytes. Show all posts
Showing posts with label Example of getting value in Bytes. Show all posts

Wednesday, January 28, 2009

Example of getting value in Bytes

byte y = 5;
Console.WriteLine("The original value of y = " + y);
Console.WriteLine("The value of y in bytes = " + (byte)~y);
Console.ReadLine();