Exemplo n.º 1
0
        public string GetParam(OdcmProperty type)
        {
            if (type.IsComplex())
            {
                return(type.IsSystem() ? string.Empty : type.GetTypeString() + " *" + type.Name.ToLowerFirstChar());
            }

            return(type.GetTypeString() + " " + type.Name);
        }
        public static string GetFullType(this OdcmProperty property)
        {
            string result;

            if (property.IsCollection)
            {
                result = !property.IsSystem() && property.GetTypeString() != "NSData" ?
                         string.Format("NSMutableArray<{0}>", property.GetTypeString()) : "NSMutableArray";
            }
            else
            {
                result = property.GetTypeString();
            }

            return(result);
        }