CycleStrategy.Write C# (CSharp) Méthode

Write() public méthode

This is used to write the reference in to the XML element that is to be written. This will either insert an object identity if the object has not previously been written, or, if the object has already been written in a previous element, this will write the reference to that object. This allows all cycles within the graph to be serialized so that they can be fully deserialized.
public Write ( Type type, Object value, NodeMap node, Dictionary, map ) : bool
type Type /// the type of the field or method in the object ///
value Object /// this is the actual object that is to be written ///
node NodeMap /// this is the XML element attribute map to use ///
map Dictionary, /// this is the session map used for the serialization ///
Résultat bool
      public bool Write(Type type, Object value, NodeMap node, Dictionary map) {
         WriteGraph graph = write.Find(map);
         if(graph != null) {
            return graph.Write(type, value, node);
         }
         return false;
      }
   }