Transformer.Write C# (CSharp) Method

Write() public method

This method is used to convert the provided value into an XML usable format. This is used in the serialization process when there is a need to convert a field value in to a string so that that value can be written as a valid XML entity.
public Write ( Object value, Class, type ) : String
value Object /// this is the value to be converted to a string ///
type Class, /// this is the type to convert to a string value ///
return String
   public String Write(Object value, Class type) {
      Transform transform = Lookup(type);
      if(transform == null) {
         throw new TransformException("Transform of %s not supported", type);
      }
      return transform.Write(value);
   }
   /// <summary>