コード例 #1
0
    public string GetDPManagedPropertyType(GlobalInfo all)
    {
        string property_type = Annotations.GetValue("ManagedPropertyType");

        if (property_type != null)
        {
            return(property_type);
        }

        property_type = Annotations.GetValue("PropertyType");

        if (property_type == null)
        {
            return(null);
        }

        switch (property_type)
        {
        case "char*":
            property_type = "string"; break;

        case "gint32":
            property_type = "int"; break;
        }

        if (IsDPNullable)
        {
            return("Nullable<" + property_type + ">");
        }
        else
        {
            return(property_type);
        }
    }
コード例 #2
0
    public string GetManagedAccessorAccess()
    {
        string result = Annotations.GetValue("ManagedAccessorAccess");

        return(string.IsNullOrEmpty(result) ? GetManagedAccess() : result);
    }
コード例 #3
0
    public string GetAccess()
    {
        string result = Annotations.GetValue("Access");

        return(string.IsNullOrEmpty(result) ? "Public" : result);
    }