AgileWallaby.Ehcache.EhcacheServerDictionary.RejectKeyIfNotString C# (CSharp) Method

RejectKeyIfNotString() private method

private RejectKeyIfNotString ( object keyObj ) : string
keyObj object
return string
        private string RejectKeyIfNotString(object keyObj)
        {
            if (!(keyObj is string))
            {
                throw new ArgumentException("Only keys of type string can be provided.", "key");
            }
            return (string)keyObj;
        }
    }