Download Composite Specification Pattern
Description
I have implemented the Specification pattern using the Composite pattern in order to provide the ability to combine Specifications in various ways. I really needed this in a project, and I was surprised that I could not find any .NET implementations out in the blogoshpere, so...
Source Files
The download file spec.zip has the following entries.
BuildProcessTemplates/DefaultTemplate.11.1.xaml
BuildProcessTemplates/DefaultTemplate.xaml
BuildProcessTemplates/LabDefaultTemplate.11.xaml
BuildProcessTemplates/UpgradeTemplate.xaml
Specifications/AndSpecification.cs/* w ww . j ava 2s . co m*/
Specifications/CompositeSpecification.cs
Specifications/CompositeSpecificationClassDiagram.cd
Specifications/ContainsSpecification.cs
Specifications/EndsWithSpecification.cs
Specifications/EqualSpecification.cs
Specifications/GreaterThanOrEqualToSpecification.cs
Specifications/ISpecification.cs
Specifications/ISpecificationParameter.cs
Specifications/InverseSpecification.cs
Specifications/LeafNodesClassDiagram.cd
Specifications/LeafSpecification.cs
Specifications/LessThanOrEqualToSpecification.cs
Specifications/NotEqualSpecification.cs
Specifications/OrSpecification.cs
Specifications/Properties/AssemblyInfo.cs
Specifications/Specifications.csproj
Specifications/Specifications.csproj.vspscc
Specifications/Specifications.sln
Specifications/Specifications.vssscc
Specifications/StartsWithSpecification.cs
Specifications/UnitTests/Properties/AssemblyInfo.cs
Specifications/UnitTests/SpecificationTests.cs
Specifications/UnitTests/TestCustomer.cs
Specifications/UnitTests/TestOrder.cs
Specifications/UnitTests/UnitTests.csproj
Specifications/UnitTests/UnitTests.csproj.vspscc
Specifications/ValueBoundSpecification.cs
Download
Click the following link to download spec.zip.
spec.zipHome »
C# Free Code »
Development »
C# Free Code »
Development »