public static IFileDownloader CreateDownloader(long chunkSize = 0, IFileTransmissionStorage storage = null) { return chunkSize > 0 ? (IFileDownloader)new ChunkedDownloader(chunkSize, storage) : (IFileDownloader)new SimpleFileDownloader(); } }