private static uint StrToID(string type) { byte a = (byte)type[0]; byte b = (byte)type[1]; byte c = (byte)type[2]; byte d = (byte)type[3]; return (uint)((a << 24) + (b << 16) + (c << 8) + d); }