示例#1
0
 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);
         }
     }
 }
示例#2
0
 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);
     }
 }