public static void Serialize(Stream stream, SharedDataSet sharedDataSet)
 {
     if (sharedDataSet != null)
     {
         RdlSerializer rdlSerializer = SharedDataSet.CreateSerializer();
         rdlSerializer.Serialize(stream, sharedDataSet);
     }
 }
        public static SharedDataSet Deserialize(Stream stream)
        {
            RdlSerializer rdlSerializer = SharedDataSet.CreateSerializer();

            return((SharedDataSet)rdlSerializer.Deserialize(stream, typeof(SharedDataSet)));
        }