public static IEnumerable Subsets(SqlInt32 cardinal) { if (cardinal.IsNull) { yield break; } var c = new Subset(cardinal.Value); for (var success = c.First(); success; success = c.Next()) { yield return(c); } }