1

Closed

Pull request : Support to tables with very long keys

description

I'm not familiar with mercurial, so i'm sending the pull request as attachment :D
I hope you could merge it asap since i need the change for Effort https://effort.codeplex.com/

Thanks !

Here is the code change, in addition to the file attached (just tuple definitions)

ReflectionHelper.cs : 148

public static bool IsTuple(Type type)
    {
        if (!type.IsGenericType)
        {
            return false;
        }

        Type t = type.GetGenericTypeDefinition();

        return
            t == typeof(Tuple<>) ||
            t == typeof(Tuple<,>) ||
            t == typeof(Tuple<,,>) ||
            t == typeof(Tuple<,,,>) ||
            t == typeof(Tuple<,,,,>) ||
            t == typeof(Tuple<,,,,,>) ||
            t == typeof(Tuple<,,,,,,>) ||
            t == typeof(Tuple<,,,,,,,>) ||
            t == typeof(Tuple<,,,,,,,,>) ||
            t == typeof(Tuple<,,,,,,,,,>) ||
            t == typeof(Tuple<,,,,,,,,,,>) ||
            t == typeof(Tuple<,,,,,,,,,,,>) ||
            t == typeof(Tuple<,,,,,,,,,,,,>) ||
            t == typeof(Tuple<,,,,,,,,,,,,,>) ||
            t == typeof(Tuple<,,,,,,,,,,,,,,>);
    }

file attachments

Closed Dec 11, 2013 at 8:41 AM by tamasflamich

comments