Ejemplo n.º 1
0
 static string GetFullAlias(UnionMember member)
 {
     if (member.Info1 !.MemberChain.Length > 0)
     {
         return(string.Join("_", member.Info1.MemberChain.Select(m => m.Name)));
     }
     if (member.Info2 !.MemberChain.Length > 0)
     {
         return(string.Join("_", member.Info2.MemberChain.Select(m => m.Name)));
     }
     return(member.Member.MemberExpression.Member.Name);
 }
Ejemplo n.º 2
0
                static string GetShortAlias(UnionMember member)
                {
                    if (member.Info1 !.MemberChain.Length > 0)
                    {
                        return(member.Info1.MemberChain[member.Info1.MemberChain.Length - 1].Name);
                    }

                    if (member.Info2 !.MemberChain.Length > 0)
                    {
                        return(member.Info2.MemberChain[member.Info2.MemberChain.Length - 1].Name);
                    }
                    return(member.Member.MemberExpression.Member.Name);
                }