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); } }
public string GetManagedAccessorAccess() { string result = Annotations.GetValue("ManagedAccessorAccess"); return(string.IsNullOrEmpty(result) ? GetManagedAccess() : result); }
public string GetAccess() { string result = Annotations.GetValue("Access"); return(string.IsNullOrEmpty(result) ? "Public" : result); }