public static IReader CreateInstance(FormatType? format) { if (FormatType.JSON == format) return new JsonReader(); if (FormatType.XML == format) return new XmlReader(); return null; }