/// <summary> /// Initialize. /// </summary> /// <param name="path"></param> internal static void Initialize(string path) { if (path == null) { throw new ArgumentNullException("path"); } if (path.Length == 0) { throw new ArgumentOutOfRangeException("'path' is zero-length."); } // check... if (_current != null) { throw new InvalidOperationException("The property bag has already been initialized"); } _current = new ConnectionStringsPropertyBag(path); }
/// <summary> /// Clears down the item. /// </summary> // mbr - 21-09-2007 - added. internal static void Deinitialize() { _current = null; }