namespace Zinnia.Extension
{
using Zinnia.Rule;
///
/// Extension methods for .
///
public static class RuleContainerExtensions
{
///
/// Determines whether an object is accepted.
///
/// The container of the to check against.
/// The object to check.
/// if is accepted, otherwise.
public static bool Accepts(this RuleContainer container, object target)
{
return container?.Interface?.Accepts(target) != false;
}
}
}