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