Exemplo n.º 1
0
        protected string GetMemberType(AtomMemberInfo member)
        {
            if (CanBeStronger(member))
            {
                var referencingTypeName = new CSharpStrongTypeNameFinder(member).TypeName();

                if (member.Optional)
                {
                    return(referencingTypeName + "?");
                }

                return(referencingTypeName);
            }

            string typeName = member.MemberType.Accept(new CSharpDefaultTypeFinder(member.Optional));

            return(typeName);
        }
Exemplo n.º 2
0
        protected string GetMemberType(AtomMemberInfo member)
        {
            if (CanBeStronger(member))
            {
                var referencingTypeName = new CSharpStrongTypeNameFinder(member).TypeName();

                if (member.Optional)
                {
                    return referencingTypeName + "?";
                }

                return referencingTypeName;
            }

            string typeName = member.MemberType.Accept(new CSharpDefaultTypeFinder(member.Optional));

            return typeName;
        }