March 2004
Intermediate to advanced
560 pages
26h 47m
English
using System;
namespace Samples
{
public class ByteSample
{
public static void Main()
{
byte b = Byte.MaxValue;
Console.WriteLine("MaxValue is {0}", b);
Console.WriteLine("MaxValue.GetHashCode is {0}",
b.GetHashCode());
b = Byte.MinValue;
Console.WriteLine("MinValue is {0}", b);
Console.WriteLine("MinValue.GetHashCode is {0}",
b.GetHashCode());
string s = Byte.MaxValue.ToString();
b = Byte.Parse(s);
Console.WriteLine(b);
}
}
}
MaxValue is 255 MaxValue.GetHashCode is 255 MinValue is 0 MinValue.GetHashCode is 0 255
Read now
Unlock full access