using System.Diagnostics.Contracts;
public static void Main() {
var m = new ShortYear(numero);
public struct ShortYear {
public const short Century = 1900;
public ShortYear(short value) {
Contract.Ensures(value >= Century && value < Century + 256);
Year = (byte)(value - Century);
public ShortYear(int value) {
Contract.Ensures(value >= Century && value < Century + 256);
Year = (byte)(value - Century);
public static implicit operator short(ShortYear value) => (short)(value.Year + Century);
public static implicit operator int(ShortYear value) => value.Year + Century;
public override int GetHashCode() => Year.GetHashCode();
public override String ToString() => (Year + Century).ToString();