System.Windows.Forms.ComboBox.ComboBoxDataSource.ObjectValueForItem C# (CSharp) Method

ObjectValueForItem() public method

public ObjectValueForItem ( NSComboBox comboBox, int index ) : NSObject
comboBox NSComboBox
index int
return MonoMac.Foundation.NSObject
			public override NSObject ObjectValueForItem (NSComboBox comboBox, int index)
			{
				if (cbox == null)
					return null;
				if (string.IsNullOrEmpty (cbox.DisplayMember))
					returnString = new NSString (cbox.Items[index].ToString ());
				else
					returnString = new NSString (Util.GetPropertyStringValue (cbox.Items[index], cbox.DisplayMember));
				return returnString;
				
			}