Permalink
Browse files

avoid LayeredColumns hashset bug on mono 2.10.8 or early

  • Loading branch information...
1 parent 63593b5 commit ba36b028e0154514c2744fbd9787d20d522cffe6 @wsky committed Sep 6, 2012
Showing with 33 additions and 27 deletions.
  1. +28 −26 .gitignore
  2. +5 −1 src/FluentNHibernate/MappingModel/Collections/LayeredColumns.cs
View
@@ -1,26 +1,28 @@
-
-**/*.suo
-**/*.user
-**/*.sln*
-bin
-obj
-_ReSharper*
-dist
-output
-build
-
-*.DotSettings.user
-*.csproj.user
-
-*.resharper.user
-
-*.resharper
-
-*.suo
-
-*.cache
-
-*~
-
-*.swp
-TestResult.xml
+
+**/*.suo
+**/*.user
+**/*.sln*
+bin
+obj
+_ReSharper*
+dist
+output
+build
+
+*.DotSettings.user
+*.csproj.user
+
+*.resharper.user
+
+*.resharper
+
+*.suo
+
+*.cache
+
+*~
+
+*.swp
+TestResult.xml
+
+*.user
@@ -21,7 +21,11 @@ public IEnumerable<ColumnMapping> Columns
foreach (var value in values)
{
- yield return value;
+ //value will be null on MONO 2.10.8 or earlier version
+ //HashSet<T> on MONO was not work well.
+ //issue:https://github.com/codesharp/infrastructure/issues/18
+ if (value != null)
+ yield return value;
}
}
}

1 comment on commit ba36b02

Please sign in to comment.