private WriteField ( object target, |
||
target | object | |
meminfo | ||
Résultat | void |
internal override void WriteField(RecordWriter writer) { for (int i = 0; i < elements.Count; i++) { string fieldName = IndexToFieldName(i); writer.WriteField(elements[i], fieldName); } }
internal override void WriteField(RecordWriter writer) { BeforeWrite(writer); var compinfo = InfoProvider.GetCompoundInfo(GetType()); foreach (var meminfo in compinfo.Members.Values.Distinct()) { writer.WriteField(this, meminfo); } AfterWrite(writer); }
internal void WriteRecord(RecordWriter writer) { BeforeWrite(writer); var compinfo = InfoProvider.GetCompoundInfo(GetType()); foreach (var meminfo in compinfo.Members.Values.Distinct().OrderBy(m => m.Order)) { writer.WriteField(this, meminfo); } AfterWrite(writer); }