Exemplo n.º 1
0
        static void CheckTypeName(ClassInfo forClass, string typeName, List <EnumData> enums)
        {
            string trimmed = TypeHandling.TrimTypeName(typeName);

            if (!TypeHandling.IsPrimitive(trimmed))
            {
                if (!trimmed.Equals(forClass.Name))
                {
                    EnumData clazz = enums.GetEnum(trimmed);
                    if (clazz != null && !forClass.ReferencedEnums.Contains(clazz))
                    {
                        forClass.ReferencedEnums.Add(clazz);
                    }
                }
            }
        }
Exemplo n.º 2
0
        static void CheckTypeName(ClassInfo forClass, string typeName, List <ClassInfo> classes)
        {
            string trimmed = TypeHandling.TrimTypeName(typeName);

            if (!TypeHandling.IsPrimitive(trimmed))
            {
                if (!trimmed.Equals(forClass.Name))
                {
                    ClassInfo clazz = classes.GetClass(trimmed);
                    if (clazz != null && !forClass.Referenced.Contains(clazz))
                    {
                        forClass.Referenced.Add(clazz);
                    }
                }
            }
        }