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