private void WriteValues(MemoryStream stream) { foreach (var value in Values) { if (value is int) { Writer.Write(stream, (int)value); } else if (value is float) { Writer.Write(stream, (float)value); } else if (value is string) { Writer.Write(stream, (string)value); } else if (value is byte[]) { Writer.Write(stream, (byte[])value); } } }
private void WriteAddress(MemoryStream stream) { Writer.Write(stream, Address); }