ScrewTurn.Wiki.PagesStorageProvider.GetNamespace C# (CSharp) Method

GetNamespace() public method

Gets a namespace.
If name is null. If name is empty.
public GetNamespace ( string name ) : NamespaceInfo
name string The name of the namespace.
return NamespaceInfo
        public NamespaceInfo GetNamespace(string name)
        {
            if(name == null) throw new ArgumentNullException("name");
            if(name.Length == 0) throw new ArgumentException("Name cannot be empty", "name");

            lock(this) {
                return FindNamespace(name, GetNamespaces());
            }
        }
PagesStorageProvider