xamarin.ios - Monotouch.Dialog: Backing Field Exclusion -


using amazing monotouch.dialog tool set, how can ensure backing fields not show. when assign [entry] attribute get;set; property, following rendered:

[caption("weight")] [entry(placeholder = "kilograms", keyboardtype = uikeyboardtype.phonepad)] public string weight { get; set; } 

enter image description here

this bug in monotouch.dialog, best option not use properties, , instead use fields directly or alter local copy of monotouch.dialog prevent creating elements if not public (currently uses public , private methods).

change line:

var members = o.gettype ().getmembers (bindingflags.declaredonly | bindingflags.public |                                        bindingflags.nonpublic | bindingflags.instance); 

with:

var members = o.gettype ().getmembers (bindingflags.declaredonly | bindingflags.public |                                        bindingflags.instance); 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -