2 types derived from MemberDescriptor
System.ComponentModel.TypeConverter (2)
System\ComponentModel\EventDescriptor.cs (1)
9
public abstract class EventDescriptor :
MemberDescriptor
System\ComponentModel\PropertyDescriptor.cs (1)
16
public abstract class PropertyDescriptor :
MemberDescriptor
139 references to MemberDescriptor
netstandard (1)
netstandard.cs (1)
380
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.
MemberDescriptor
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
366
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.
MemberDescriptor
))]
System.ComponentModel.TypeConverter (44)
System\ComponentModel\Design\ComponentChangedEventArgs.cs (2)
19
public
MemberDescriptor
? Member { get; }
34
public ComponentChangedEventArgs(object? component,
MemberDescriptor
? member, object? oldValue, object? newValue)
System\ComponentModel\Design\ComponentChangingEventArgs.cs (2)
19
public
MemberDescriptor
? Member { get; }
24
public ComponentChangingEventArgs(object? component,
MemberDescriptor
? member)
System\ComponentModel\Design\IComponentChangeService.cs (2)
49
void OnComponentChanged(object component,
MemberDescriptor
? member, object? oldValue, object? newValue);
54
void OnComponentChanging(object component,
MemberDescriptor
? member);
System\ComponentModel\Design\Serialization\ComponentSerializationService.cs (2)
64
public abstract void SerializeMember(SerializationStore store, object owningObject,
MemberDescriptor
member);
76
public abstract void SerializeMemberAbsolute(SerializationStore store, object owningObject,
MemberDescriptor
member);
System\ComponentModel\Design\Serialization\MemberRelationshipService.cs (4)
72
public MemberRelationship this[object sourceOwner,
MemberDescriptor
sourceMember]
139
internal
MemberDescriptor
_member;
180
public MemberRelationship(object owner,
MemberDescriptor
member)
197
public
MemberDescriptor
Member { get; }
System\ComponentModel\EventDescriptor.cs (5)
23
/// the specified <see cref='System.ComponentModel.
MemberDescriptor
'/>.
25
protected EventDescriptor(
MemberDescriptor
descr) : base(descr)
31
/// the name in the specified <see cref='System.ComponentModel.
MemberDescriptor
'/> and the
32
/// attributes in both the <see cref='System.ComponentModel.
MemberDescriptor
'/> and the <see cref='System.Attribute'/> array.
34
protected EventDescriptor(
MemberDescriptor
descr, Attribute[]? attrs) : base(descr, attrs)
System\ComponentModel\MemberDescriptor.cs (12)
32
/// Initializes a new instance of the <see cref='System.ComponentModel.
MemberDescriptor
'/> class with the specified <paramref name="name"/> and no attributes.
39
/// Initializes a new instance of the <see cref='System.ComponentModel.
MemberDescriptor
'/> class with the specified <paramref name="name"/> and <paramref name="attributes "/> array.
64
/// Initializes a new instance of the <see cref='System.ComponentModel.
MemberDescriptor
'/> class with the specified <see cref='System.ComponentModel.
MemberDescriptor
'/>.
66
protected MemberDescriptor(
MemberDescriptor
descr)
83
/// Initializes a new instance of the <see cref='System.ComponentModel.
MemberDescriptor
'/> class with the name in the specified
84
/// <see cref='System.ComponentModel.
MemberDescriptor
'/> and the attributes
85
/// in both the old <see cref='System.ComponentModel.
MemberDescriptor
'/> and the <see cref='System.Attribute'/> array.
87
protected MemberDescriptor(
MemberDescriptor
oldMemberDescriptor, Attribute[]? newAttributes)
240
/// Compares this instance to the specified <see cref='System.ComponentModel.
MemberDescriptor
'/> to see if they are equivalent.
259
MemberDescriptor
mdObj = (
MemberDescriptor
)obj;
System\ComponentModel\PropertyDescriptor.cs (5)
37
/// the name and attributes in the specified <see cref='System.ComponentModel.
MemberDescriptor
'/>.
39
protected PropertyDescriptor(
MemberDescriptor
descr) : base(descr)
46
/// the name in the specified <see cref='System.ComponentModel.
MemberDescriptor
'/> and the
47
/// attributes in both the <see cref='System.ComponentModel.
MemberDescriptor
'/> and the
51
protected PropertyDescriptor(
MemberDescriptor
descr, Attribute[]? attrs) : base(descr, attrs)
System\ComponentModel\TypeDescriptor.cs (10)
572
if (ShouldHideMember((
MemberDescriptor
?)members[idx], attributes[attrIdx]))
1269
private static string? GetExtenderCollisionSuffix(
MemberDescriptor
member)
2002
foreach (
MemberDescriptor
desc in members)
2032
MemberDescriptor
origDesc = (
MemberDescriptor
)filterTable[descName]!;
2727
private static bool ShouldHideMember(
MemberDescriptor
? member, Attribute? attribute)
3031
MemberDescriptor
? leftMember = left as
MemberDescriptor
;
3032
MemberDescriptor
? rightMember = right as
MemberDescriptor
;
System.Windows.Forms.Design (37)
System\ComponentModel\Design\ComponentDesigner.cs (2)
725
protected void RaiseComponentChanged(
MemberDescriptor
? member, object? oldValue, object? newValue)
733
protected void RaiseComponentChanging(
MemberDescriptor
? member)
System\ComponentModel\Design\DesignerHost.cs (2)
848
void IComponentChangeService.OnComponentChanged(object component,
MemberDescriptor
? member, object? oldValue, object? newValue)
858
void IComponentChangeService.OnComponentChanging(object component,
MemberDescriptor
? member)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (1)
109
internal void AddMember(object value,
MemberDescriptor
member, bool absolute)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ObjectData.cs (2)
72
internal readonly
MemberDescriptor
_member;
82
internal MemberData(
MemberDescriptor
member, bool absolute)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.cs (2)
93
public override void SerializeMember(SerializationStore store, object owningObject,
MemberDescriptor
member)
117
public override void SerializeMemberAbsolute(SerializationStore store, object owningObject,
MemberDescriptor
member)
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (2)
227
public virtual CodeStatementCollection SerializeMember(IDesignerSerializationManager manager, object owningObject,
MemberDescriptor
member)
263
public virtual CodeStatementCollection SerializeMemberAbsolute(IDesignerSerializationManager manager, object owningObject,
MemberDescriptor
member)
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (2)
23
public override void Serialize(IDesignerSerializationManager manager, object value,
MemberDescriptor
descriptor, CodeStatementCollection statements)
77
public override bool ShouldSerialize(IDesignerSerializationManager manager, object value,
MemberDescriptor
descriptor) => true;
System\ComponentModel\Design\Serialization\MemberCodeDomSerializer.cs (2)
23
MemberDescriptor
descriptor,
30
public abstract bool ShouldSerialize(IDesignerSerializationManager manager, object value,
MemberDescriptor
descriptor);
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (2)
83
public override void Serialize(IDesignerSerializationManager manager, object value,
MemberDescriptor
descriptor, CodeStatementCollection statements)
360
public override bool ShouldSerialize(IDesignerSerializationManager manager, object value,
MemberDescriptor
descriptor)
System\ComponentModel\Design\Serialization\ResourcePropertyMemberCodeDomSerializer.cs (2)
29
public override void Serialize(IDesignerSerializationManager manager, object value,
MemberDescriptor
descriptor, CodeStatementCollection statements)
81
public override bool ShouldSerialize(IDesignerSerializationManager manager, object value,
MemberDescriptor
descriptor)
System\ComponentModel\Design\Serialization\SerializeAbsoluteContext.cs (3)
32
public SerializeAbsoluteContext(
MemberDescriptor
? member)
41
public
MemberDescriptor
? Member { get; }
46
public bool ShouldSerialize(
MemberDescriptor
? member)
System\ComponentModel\Design\UndoEngine.cs (2)
557
public readonly
MemberDescriptor
member;
559
public ReferencingComponent(IComponent component,
MemberDescriptor
member)
System\ComponentModel\Design\UndoEngine.UndoUnit.ChangeUndoEvent.cs (3)
16
private readonly
MemberDescriptor
? _member;
81
public bool ContainsChange(
MemberDescriptor
? desc)
131
private static SerializationStore Serialize(UndoEngine engine, object component,
MemberDescriptor
? member)
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (1)
78
MemberDescriptor
? memberDescriptor = TypeDescriptor.GetProperties(navigator)["Items"];
System\Windows\Forms\Design\StandardMenuStripVerb.cs (3)
201
MemberDescriptor
member = TypeDescriptor.GetProperties(rootItem)["DropDownItems"];
214
MemberDescriptor
topMember = TypeDescriptor.GetProperties(tool)["Items"];
359
MemberDescriptor
topMember = TypeDescriptor.GetProperties(tool)["Items"];
System\Windows\Forms\Design\TabControlDesigner.cs (3)
99
MemberDescriptor
member = TypeDescriptor.GetProperties(component: Component)["Controls"];
262
MemberDescriptor
member = TypeDescriptor.GetProperties(tc)["Controls"];
332
MemberDescriptor
member = TypeDescriptor.GetProperties(Component)["Controls"];
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1417
private bool DoesPropertyAffectPosition(
MemberDescriptor
member)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
1683
MemberDescriptor
member = TypeDescriptor.GetProperties(MenuItem.DropDown)["Items"];
1786
MemberDescriptor
member = TypeDescriptor.GetProperties(MenuItem.DropDown)["Items"];
System.Windows.Forms.Design.Tests (50)
System\ComponentModel\Design\ComponentDesignerTests.cs (8)
2489
public void ComponentDesigner_RaiseComponentChanged_InvokeWithValidService_CallsOnOnComponentChanged(
MemberDescriptor
member, object oldValue, object newValue)
2518
public void ComponentDesigner_RaiseComponentChanged_InvokeWithInvalidService_CallsOnOnComponentChanged(object componentChangeService,
MemberDescriptor
member, object oldValue, object newValue)
2533
public void ComponentDesigner_RaiseComponentChanged_InvokeWithoutComponent_Nop(
MemberDescriptor
member, object oldValue, object newValue)
2547
public void ComponentDesigner_RaiseComponentChanging_InvokeWithValidService_CallsOnOnComponentChanged(
MemberDescriptor
member)
2576
public void ComponentDesigner_RaiseComponentChanging_InvokeWithInvalidService_CallsOnOnComponentChanged(object componentChangeService,
MemberDescriptor
member)
2591
public void ComponentDesigner_RaiseComponentChanging_InvokeWithoutComponent_Nop(
MemberDescriptor
member)
2956
public new void RaiseComponentChanged(
MemberDescriptor
member, object oldValue, object newValue)
2961
public new void RaiseComponentChanging(
MemberDescriptor
member) => base.RaiseComponentChanging(member);
System\ComponentModel\Design\DesignerHostTests.cs (4)
2930
public void DesignerHost_IComponentChangeServiceOnComponentChanging_Invoke_CallsComponentChanging(object component,
MemberDescriptor
member)
2963
public void DesignerHost_IComponentChangeServiceOnComponentChanging_InvokeLoading_DoesNotCallHandler(object component,
MemberDescriptor
member)
3000
public void DesignerHost_IComponentChangeServiceOnComponentChanged_Invoke_CallsComponentChanged(object component,
MemberDescriptor
member, object oldValue, object newValue)
3035
public void DesignerHost_IComponentChangeServiceOnComponentChanged_InvokeLoading_DoesNotCallHandler(object component,
MemberDescriptor
member, object oldValue, object newValue)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (34)
418
MemberDescriptor
member1 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
419
MemberDescriptor
member2 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.DefaultStringValue)];
420
MemberDescriptor
member3 = TypeDescriptor.GetEvents(typeof(DataClass))[nameof(DataClass.Event)];
464
MemberDescriptor
member1 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
465
MemberDescriptor
member2 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.DefaultStringValue)];
466
MemberDescriptor
member3 = TypeDescriptor.GetEvents(typeof(DataClass))[nameof(DataClass.Event)];
510
MemberDescriptor
member1 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
511
MemberDescriptor
member2 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.DefaultStringValue)];
559
MemberDescriptor
member1 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
560
MemberDescriptor
member2 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.DefaultStringValue)];
1129
MemberDescriptor
member1 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1130
MemberDescriptor
member2 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1172
MemberDescriptor
member1 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1173
MemberDescriptor
member2 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1229
MemberDescriptor
member1 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1230
MemberDescriptor
member2 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1300
MemberDescriptor
member1 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1301
MemberDescriptor
member2 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1363
MemberDescriptor
member = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1372
MemberDescriptor
member = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1389
MemberDescriptor
member = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1399
MemberDescriptor
member = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1408
MemberDescriptor
member1 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1409
MemberDescriptor
member2 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1451
MemberDescriptor
member1 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1452
MemberDescriptor
member2 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1508
MemberDescriptor
member1 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1509
MemberDescriptor
member2 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1579
MemberDescriptor
member1 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1580
MemberDescriptor
member2 = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.StringValue)];
1642
MemberDescriptor
member = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1651
MemberDescriptor
member = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1668
MemberDescriptor
member = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
1678
MemberDescriptor
member = TypeDescriptor.GetProperties(typeof(DataClass))[nameof(DataClass.IntValue)];
System\ComponentModel\Design\Serialization\SerializeAbsoluteContextTests.cs (4)
25
public void SerializeAbsoluteContext_Ctor_MemberDescriptor(
MemberDescriptor
member)
34
MemberDescriptor
member1 = properties[nameof(RootContext.Expression)];
35
MemberDescriptor
member2 = properties[nameof(RootContext.Value)];
47
public void SerializeAbsoluteContext_ShouldSerialize_Invoke_ReturnsExpected(SerializeAbsoluteContext context,
MemberDescriptor
member, bool expected)
System.Windows.Forms.Primitives (4)
System\ComponentModel\Design\ComponentChangeServiceExtensions.cs (2)
11
MemberDescriptor
? member = null,
21
MemberDescriptor
? member = null)
System\ComponentModel\MemberDescriptorExtensions.cs (2)
10
this
MemberDescriptor
descriptor,
19
this
MemberDescriptor
descriptor) where T : Attribute
System.Windows.Forms.Tests (2)
System\Windows\Forms\PropertyGridTests.cs (2)
4290
public void OnComponentChanged(object component,
MemberDescriptor
member, object oldValue, object newValue)
4294
public void OnComponentChanging(object component,
MemberDescriptor
member)