internal void Write(PexWriteMeta write) { write.WriteString(Name); write.WriteString(TypeName); write.WriteString(DocString); write.Writer.Write(RawUserFlags); var flags = (byte)Flags; write.Writer.Write(flags); if ((flags & 4) != 0) { write.WriteString(AutoVarName); } if ((flags & 5) == 1) { ReadHandler?.Write(write); } if ((flags & 6) == 2) { WriteHandler?.Write(write); } }