/// <summary> /// Adds the keys that must be ignored and not processed. /// </summary> /// <param name="ignoreKeys">The keys that must be ignored and not processed.</param> /// <returns>The metadata processor.</returns> public DefaultMetadataProcessor Ignore(IEnumerable <string> ignoreKeys) { IgnoreKeys.UnionWith(ignoreKeys); return(this); }
/// <summary> /// Determines if a metadata key must be ignored. /// </summary> /// <param name="key">The metadata key.</param> /// <returns><see langword="true"/> if the key must be ignored, otherwise, <see langword="false"/>.</returns> protected bool IsIgnore(string key) { return(IgnoreKeys.Contains(key) || IgnoreDelegates.Any(x => x(key))); }
/// <summary> /// Adds the keys that must be ignored and not processed. /// </summary> /// <param name="ignoreKeys">The keys that must be ignored and not processed.</param> /// <returns>The metadata processor.</returns> public DefaultMetadataProcessor Ignore(params string[] ignoreKeys) { IgnoreKeys.UnionWith(ignoreKeys); return(this); }