Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            switch (InterfaceFunctions.ChooseSection <SerializationSections>())
            {
            case SerializationSections.Serialize:
                SerializationBasics.Serialize();
                break;

            case SerializationSections.Deserialize:
                SerializationBasics.Deserialize();
                break;

            case SerializationSections.Cyclic:
                CyclicDependencies.CyclicSerialization();
                break;
            }

            Console.ReadLine();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Section section = Section.Cyclic;

            switch (section)
            {
            case Section.Serialize:
                SerializationBasics.Serialize();
                break;

            case Section.Deserialize:
                SerializationBasics.Deserialize();
                break;

            case Section.Cyclic:
                CyclicDependencies.CyclicSerialization();
                break;
            }

            Console.ReadLine();
        }