static int GetTagInt(string tag) { byte[] tagBytes=Encoding.UTF8.GetBytes(tag); Array.Reverse(tagBytes); return BitConverter.ToInt32(tagBytes, 0); }