/// <summary> /// Sets the value of the property or field with the specified <paramref name="name"/> when running on one of the specified <see cref="MobileTarget"/>s. /// </summary> /// <param name="obj">The object.</param> /// <param name="name">The name the property or field whose value is to be set.</param> /// <param name="value">The value to set to the property or field.</param> /// <param name="index">Optional index values for indexed properties. This value should be <c>null</c> for non-indexed properties.</param> /// <param name="targets">The targets on which the code must be running for the value to be set.</param> public static void SetValue(this IPairable obj, string name, object value, object[] index, MobileTarget targets) { obj.SetValue(name, value, index, null, targets); }
/// <summary> /// Sets the value of the property or field with the specified <paramref name="name"/> when running on one of the specified <see cref="MobileTarget"/>s. /// </summary> /// <param name="obj">The object.</param> /// <param name="name">The name of the property or field whose value is to be set.</param> /// <param name="value">The value to set to the property or field.</param> /// <param name="converter">An optional converter to use on the value prior to setting the property or field.</param> /// <param name="targets">The targets on which the code must be running for the value to be set.</param> public static void SetValue(this IPairable obj, string name, object value, IValueConverter converter, MobileTarget targets) { obj.SetValue(name, value, null, converter, targets); }