Android.Dialog.BindingContext.SetValue C# (CSharp) Method

SetValue() static private method

static private SetValue ( MemberInfo mi, object o, object val ) : void
mi System.Reflection.MemberInfo
o object
val object
return void
        static void SetValue(MemberInfo mi, object o, object val)
        {
            var fi = mi as FieldInfo;
            if (fi != null)
            {
                fi.SetValue(o, val);
                return;
            }
            var pi = mi as PropertyInfo;
            if (pi == null)
                return;
            var setMethod = pi.GetSetMethod();
            setMethod.Invoke(o, new[] { val });
        }