예제 #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();
        }
예제 #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();
        }