Exemple #1
0
        bool IsSutiableProperty(Compiler.API.Domain.IL.Members.Property prop)
        {
            if (!prop.IsPublic && !prop.IsProtected)
            {
                return(false);
            }
            if (prop.GetMethod == null || !(prop.GetMethod.IsPublic || prop.GetMethod.IsProtected))
            {
                return(false);
            }
            if (_c.IsListType(prop.ReturnType))
            {
                return(true);
            }

            return(true);
        }
Exemple #2
0
 PropertyType ComputePropType()
 {
     if (_c.IsListType(UnoType))
     {
         return(Reflection.PropertyType.List);
     }
     else if (UnoType is DelegateType)
     {
         return(Reflection.PropertyType.Delegate);
     }
     else if (UnoType.IsReferenceTypeExceptStringAndValue())
     {
         return(Reflection.PropertyType.Reference);
     }
     else
     {
         return(Reflection.PropertyType.Atomic);
     }
 }