Serialize() public méthode

public Serialize ( ) : string
Résultat string
 private litleOnlineResponse sendToLitle(litleOnlineRequest request)
 {
     string xmlRequest = request.Serialize();
     string xmlResponse = communication.HttpPost(xmlRequest,config);
     try
     {
         litleOnlineResponse litleOnlineResponse = DeserializeObject(xmlResponse);
         if ("1".Equals(litleOnlineResponse.response))
         {
             throw new LitleOnlineException(litleOnlineResponse.message);
         }
         return litleOnlineResponse;
     }
     catch (InvalidOperationException ioe)
     {
         throw new LitleOnlineException("Error validating xml data against the schema", ioe);
     }
 }