Exemplo n.º 1
0
 /// <summary>
 /// Serializes the object into a DTO.
 /// </summary>
 /// <param name="obj">
 /// The object to be serialized, which must implement
 /// IMobileObject.
 /// </param>
 /// <returns></returns>
 public static List<SerializationInfo> SerializeToDTO(object obj)
 {
   var formatter = new MobileFormatter();
   return formatter.SerializeAsDTO(obj);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Serializes the object into a DTO.
        /// </summary>
        /// <param name="obj">
        /// The object to be serialized, which must implement
        /// IMobileObject.
        /// </param>
        /// <returns></returns>
        public static List <SerializationInfo> SerializeToDTO(object obj)
        {
            var formatter = new MobileFormatter();

            return(formatter.SerializeAsDTO(obj));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Serializes the object into a DTO.
        /// </summary>
        /// <param name="obj">
        /// The object to be serialized, which must implement
        /// IMobileObject.
        /// </param>
        /// <returns></returns>
        public List <SerializationInfo> SerializeToDTO(object obj)
        {
            var formatter = new MobileFormatter(ApplicationContext);

            return(formatter.SerializeAsDTO(obj));
        }