/// <summary> /// Initializes a new instance of the <see cref="CountStream"/> class. /// </summary> /// <param name="type">The type.</param> /// <param name="location">The location.</param> public CountStream(CountStreamType type, string location) { m_type = type; m_location = location; switch (type) { case CountStreamType.Directory: m_first = new CountableDirectory(location); break; case CountStreamType.VSSolution2005: m_first = new DotNetSolution(location); break; default: throw new NotImplementedException(); } }
/// <summary> /// Initializes a new instance of the <see cref="CountStream"/> class. /// </summary> /// <param name="type">The type.</param> /// <param name="location">The location.</param> public CountStream(CountStreamType type, string location) { m_type = type; m_location = location; switch (type) { case CountStreamType.Directory: m_first = new CountableDirectory(location); break; case CountStreamType.VSSolution2005: m_first = new DotNetSolution(location); break; default: throw new NotImplementedException(); } }
/// <summary> /// Initializes a new instance of the <see cref="DepthFirstCountStream"/> class. /// </summary> /// <param name="type">The type.</param> /// <param name="location">The location.</param> public DepthFirstCountStream(CountStreamType type, string location) : base(type, location) { }
/// <summary> /// Initializes a new instance of the <see cref="DepthFirstCountStream"/> class. /// </summary> /// <param name="type">The type.</param> /// <param name="location">The location.</param> public DepthFirstCountStream(CountStreamType type, string location) : base(type, location) { }
/// <summary> /// Opens the specified type. /// </summary> /// <param name="location">The location.</param> /// <param name="type">The type.</param> /// <returns></returns> public static CountStream Open(string location, CountStreamType type) { return new DepthFirstCountStream(type, location); }
/// <summary> /// Opens the specified type. /// </summary> /// <param name="location">The location.</param> /// <param name="type">The type.</param> /// <returns></returns> public static CountStream Open(string location, CountStreamType type) { return(new DepthFirstCountStream(type, location)); }