private void _Parse(byte type) { if (type < (byte)SmileTypeClass.LongASCIIText) { byte b = (byte)(type & (byte)0xE0); this.TypeClass = (SmileTypeClass)b; this.Value = type - b; } else { this.TypeClass = (SmileTypeClass)type; this.Value = 0; } }
public SmileType(SmileTypeClass type) { this.TypeClass = type; this.Value = 0; }