Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 60b1d52

Browse files
committedNov 1, 2016
fix small bugs.
1 parent 3781629 commit 60b1d52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Structural/Specification/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static void Main(string[] args) {
1313
};
1414

1515
var smartSpecification = new ExpressionSpecification<Mobile>(mobile => mobile.Type == MobileType.Smart);
16-
var appleSpecification = new ExpressionSpecification<Mobile>(mobile => mobile.Brand = MobileBrand.Apple);
16+
var appleSpecification = new ExpressionSpecification<Mobile>(mobile => mobile.Brand == MobileBrand.Apple);
1717
// find all smart mobiles;
1818
var smartMobiles = mobiles.FindAll(mobile => smartSpecification.IsSatisfiedBy(mobile));
1919
// find all apple smart mobiles;

0 commit comments

Comments
 (0)
Please sign in to comment.