using System; using System.Linq.Expressions; namespace MyCode.Project.Infrastructure { /// /// Represents the specification that can be satisfied by the given object /// in any circumstance. /// /// The type of the object to which the specification is applied. public sealed class AnySpecification : Specification { #region Public Methods /// /// Gets the LINQ expression which represents the current specification. /// /// The LINQ expression. public override Expression> GetExpression() { return o => true; } #endregion } }