1 write to PropertyName
System.Windows.Forms (1)
System\Windows\Forms\DataBinding\Binding.cs (1)
152
PropertyName
= propertyName;
29 references to PropertyName
System.Windows.Forms (16)
System\Windows\Forms\DataBinding\Binding.cs (8)
477
if (BindableComponent is not null && !string.IsNullOrEmpty(
PropertyName
))
484
string propertyNameIsNull =
PropertyName
+ "IsNull";
507
if (tempPropInfo is null && string.Equals(propInfos[i].Name,
PropertyName
, StringComparison.OrdinalIgnoreCase))
528
throw new ArgumentException(string.Format(SR.ListBindingBindProperty,
PropertyName
), nameof(
PropertyName
));
533
throw new ArgumentException(string.Format(SR.ListBindingBindPropertyReadOnly,
PropertyName
), nameof(
PropertyName
));
1135
&& !string.IsNullOrEmpty(
PropertyName
)
System\Windows\Forms\DataBinding\BindingContext.cs (2)
305
if (propBinding.BindingMemberInfo.BindingMember.Equals(binding.
PropertyName
))
307
throw new ArgumentException(string.Format(SR.DataBindingCycle, binding.
PropertyName
), nameof(propBinding));
System\Windows\Forms\DataBinding\ControlBindingsCollection.cs (5)
34
if (string.Equals(binding.
PropertyName
, propertyName, StringComparison.OrdinalIgnoreCase))
191
Debug.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)
175
val = b.
PropertyName
;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignBindingValueUIHandler.cs (1)
40
if ((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)
38
Assert.Same(propertyName, binding.
PropertyName
);
67
Assert.Same(propertyName, binding.
PropertyName
);
96
Assert.Same(propertyName, binding.
PropertyName
);
125
Assert.Same(propertyName, binding.
PropertyName
);
154
Assert.Same(propertyName, binding.
PropertyName
);
183
Assert.Same(propertyName, binding.
PropertyName
);
System\Windows\Forms\ControlBindingsCollectionTests.cs (6)
129
Assert.Equal(nameof(Control.Text), binding.
PropertyName
);
146
Assert.Equal(nameof(Control.Text), binding.
PropertyName
);
163
Assert.Equal(nameof(Control.Text), binding.
PropertyName
);
180
Assert.Equal(nameof(Control.Text), binding.
PropertyName
);
197
Assert.Equal(nameof(Control.Text), binding.
PropertyName
);
214
Assert.Equal(nameof(Control.Text), binding.
PropertyName
);