1 write to PropertyName
System.Windows.Forms (1)
System\Windows\Forms\DataBinding\Binding.cs (1)
152PropertyName = propertyName;
29 references to PropertyName
System.Windows.Forms (16)
System\Windows\Forms\DataBinding\Binding.cs (8)
477if (BindableComponent is not null && !string.IsNullOrEmpty(PropertyName)) 484string propertyNameIsNull = PropertyName + "IsNull"; 507if (tempPropInfo is null && string.Equals(propInfos[i].Name, PropertyName, StringComparison.OrdinalIgnoreCase)) 528throw new ArgumentException(string.Format(SR.ListBindingBindProperty, PropertyName), nameof(PropertyName)); 533throw new ArgumentException(string.Format(SR.ListBindingBindPropertyReadOnly, PropertyName), nameof(PropertyName)); 1135&& !string.IsNullOrEmpty(PropertyName)
System\Windows\Forms\DataBinding\BindingContext.cs (2)
305if (propBinding.BindingMemberInfo.BindingMember.Equals(binding.PropertyName)) 307throw new ArgumentException(string.Format(SR.DataBindingCycle, binding.PropertyName), nameof(propBinding));
System\Windows\Forms\DataBinding\ControlBindingsCollection.cs (5)
34if (string.Equals(binding.PropertyName, propertyName, StringComparison.OrdinalIgnoreCase)) 191Debug.Assert(!string.IsNullOrEmpty(binding.PropertyName), "The caller should check for this."); 197&& !string.IsNullOrEmpty(current.PropertyName) 198&& string.Equals(binding.PropertyName, current.PropertyName, StringComparison.InvariantCulture))
System\Windows\Forms\DataBinding\ListBindingConverter.cs (1)
175val = b.PropertyName;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignBindingValueUIHandler.cs (1)
40if ((binding.DataSource is IListSource || binding.DataSource is IList || binding.DataSource is Array) && binding.PropertyName.Equals(propDesc.Name))
System.Windows.Forms.Tests (12)
System\Windows\Forms\BindingTests.cs (6)
38Assert.Same(propertyName, binding.PropertyName); 67Assert.Same(propertyName, binding.PropertyName); 96Assert.Same(propertyName, binding.PropertyName); 125Assert.Same(propertyName, binding.PropertyName); 154Assert.Same(propertyName, binding.PropertyName); 183Assert.Same(propertyName, binding.PropertyName);
System\Windows\Forms\ControlBindingsCollectionTests.cs (6)
129Assert.Equal(nameof(Control.Text), binding.PropertyName); 146Assert.Equal(nameof(Control.Text), binding.PropertyName); 163Assert.Equal(nameof(Control.Text), binding.PropertyName); 180Assert.Equal(nameof(Control.Text), binding.PropertyName); 197Assert.Equal(nameof(Control.Text), binding.PropertyName); 214Assert.Equal(nameof(Control.Text), binding.PropertyName);