예제 #1
0
 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();
 }
예제 #2
0
 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();
 }
예제 #3
0
        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();
        }
예제 #4
0
        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();
        }