private void SerializeHeader(IStepWriter writer, IList<StepDataObject> header){ if(writer == null) throw new ArgumentNullException("writer"); if(header == null) throw new ArgumentNullException("header"); writer.WriteStartHeader(); foreach(StepDataObject sdo in header) SerializeObject( writer, sdo ); writer.WriteEndSection(); }
private void SerializeData(IStepWriter writer, IDictionary<int, StepDataObject> data){ if(writer == null) throw new ArgumentNullException("writer"); if(data == null) throw new ArgumentNullException("data"); writer.WriteStartData(); foreach(KeyValuePair<int, StepDataObject> kvp in data){ SerializeEntity( writer, kvp.Key, kvp.Value ); } writer.WriteEndSection(); }
private void SerializeData(IStepWriter writer, IDictionary <int, StepDataObject> data) { if (writer == null) { throw new ArgumentNullException("writer"); } if (data == null) { throw new ArgumentNullException("data"); } writer.WriteStartData(); foreach (KeyValuePair <int, StepDataObject> kvp in data) { SerializeEntity(writer, kvp.Key, kvp.Value); } writer.WriteEndSection(); }
private void SerializeHeader(IStepWriter writer, IList <StepDataObject> header) { if (writer == null) { throw new ArgumentNullException("writer"); } if (header == null) { throw new ArgumentNullException("header"); } writer.WriteStartHeader(); foreach (StepDataObject sdo in header) { SerializeObject(writer, sdo); } writer.WriteEndSection(); }