static void CallDeSerialization()
        {
            StreamReader file = null;

            try
            {
                XmlSerializer reader = new XmlSerializer(typeof(StudentRecord));
                file = new StreamReader(@"StudentRecord.xml");
                StudentRecord obj = (StudentRecord)reader.Deserialize(file);
                Console.WriteLine("Student Record After Deserilization:");
                Console.WriteLine("Name : " + obj.SName);
                Console.WriteLine("Address : " + obj.Add);
            }
            catch (FileNotFoundException ex)
            { Console.WriteLine(ex.Message); }
            finally
            {
                if (file != null)
                {
                    file.Close();
                }
            }
        }