public override int WriteTo(byte[] Buffer, int StartIndex = 0) { int cursor = StartIndex; cursor += base.WriteTo(Buffer, cursor); cursor += ResourceID.WriteTo(Buffer, cursor); return(cursor - StartIndex); }