public TType this[int Index] { get { if (Type == typeof(byte)) { return((TType)(object)Data.Data[Offset + Index]); } else { return(StructUtils.RawDeserialize <TType>(Data.Data, Offset + EntrySize * Index)); } } set { if (Type == typeof(byte)) { Data.Data[Offset + Index] = (byte)(object)value; } else { StructUtils.RawSerialize(Data.Data, Offset + EntrySize * Index, value); } } }
override public TType this[int Index] { get { return(StructUtils.RawDeserialize <TType>(Data.Data, Offset + EntrySize * Index)); } set { StructUtils.RawSerialize(Data.Data, Offset + EntrySize * Index, value); } }