/// <summary> /// Determines whether the <see cref="IStorageProvider" /> contains a specific token. /// </summary> /// <param name="token">The specified token.</param> /// <param name="tokenType">The specified token type.</param> /// <returns> /// <c>True</c> if the value is found in the <see cref="IStorageProvider" />; otherwise <c>false</c>. /// </returns> public virtual bool IsContains(string token, TokenType tokenType) { Validate.ArgumentNotNullOrEmpty(token, "token"); switch (tokenType) { case TokenType.Drawing: return(DrawingKeys.ContainsKey(token)); case TokenType.Validation: return(ValidateKeys.ContainsKey(token)); default: throw new ArgumentOutOfRangeException("tokenType"); } }