예제 #1
0
 /// <summary>Returns an array of <see cref="T:System.Xml.Serialization.XmlSerializer" /> objects created from an array of <see cref="T:System.Xml.Serialization.XmlTypeMapping" /> objects.</summary>
 /// <returns>An array of <see cref="T:System.Xml.Serialization.XmlSerializer" /> objects.</returns>
 /// <param name="mappings">An array of <see cref="T:System.Xml.Serialization.XmlTypeMapping" /> that maps one type to another. </param>
 public static XmlSerializer[] FromMappings(XmlMapping[] mappings)
 {
     XmlSerializer[] array = new XmlSerializer[mappings.Length];
     XmlSerializer.SerializerData[] array2          = new XmlSerializer.SerializerData[mappings.Length];
     XmlSerializer.GenerationBatch  generationBatch = new XmlSerializer.GenerationBatch();
     generationBatch.Maps  = mappings;
     generationBatch.Datas = array2;
     for (int i = 0; i < mappings.Length; i++)
     {
         if (mappings[i] != null)
         {
             XmlSerializer.SerializerData serializerData = new XmlSerializer.SerializerData();
             serializerData.Batch = generationBatch;
             array[i]             = new XmlSerializer(mappings[i], serializerData);
             array2[i]            = serializerData;
         }
     }
     return(array);
 }
예제 #2
0
 private XmlSerializer.GenerationBatch LoadFromSatelliteAssembly(XmlSerializer.GenerationBatch batch)
 {
     return(batch);
 }
예제 #3
0
 private void GenerateSerializersAsync(XmlSerializer.GenerationBatch batch)
 {
     throw new NotImplementedException();
 }