Example #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            //FileExists();
            //ReadAllLines();
            //MethodsOnFile.ReadAllText();
            //MethodsOnFile.FileCopy();
            //MethodsOnFile.DeleteFile();
            //MethodsOnFile.ReadFromStreamReader();
            MethodsOnFile.WriteUsingStreamWriter();

            SerializationDeserialization serializationAndDeserialization = new SerializationDeserialization();

            serializationAndDeserialization.BinarySerialization();
            serializationAndDeserialization.BinaryDeserialization();
            serializationAndDeserialization.JsonSerialization();
            serializationAndDeserialization.JsonDeSerialization();
            serializationAndDeserialization.XMLSerialize();
            serializationAndDeserialization.XmlDeSerialization();
        }
Example #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            //File IO Operations
            FileIOOperations fileIOOperations = new FileIOOperations();

            fileIOOperations.FileExists();
            fileIOOperations.ReadLines();
            fileIOOperations.ReadText();
            fileIOOperations.CopyFile();
            fileIOOperations.Delete();
            fileIOOperations.ReadFromStramReader();
            fileIOOperations.WriteUsingStreamWriter();
            //Serialization and Deserialization operations
            SerializationDeserialization serializationAndDeserialization = new SerializationDeserialization();

            serializationAndDeserialization.BinarySerialization();
            serializationAndDeserialization.BinaryDeserialization();
            serializationAndDeserialization.JsonSerialization();
            serializationAndDeserialization.JsonDeSerialization();
            serializationAndDeserialization.XMLSerialize();
            serializationAndDeserialization.XmlDeSerialization();
        }