heffrey78 / linq-cube

Automatically exported from code.google.com/p/linq-cube
0 stars 0 forks source link

Extension methods for boolean dimensions #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Not sure if this is correct, but I guess it would go like this:

public static List<DimensionEntry<bool>> BuildBool(this DimensionEntry<bool> 
parent)
{
    parent.Children.Add(new DimensionEntry<bool>(false.ToString(), parent)
    {
        Value = false,
        Min = false,
        Max = false
    });

    parent.Children.Add(new DimensionEntry<bool>(true.ToString(), parent)
    {
        Value = true,
        Min = true,
        Max = true
    });

    return parent.Children;
}     

Original issue reported on code.google.com by igi...@gmail.com on 8 Mar 2012 at 12:00

GoogleCodeExporter commented 8 years ago
This issue was closed by revision b093dd357ba5.

Original comment by david.black.co.at@gmail.com on 8 Mar 2012 at 1:21