5 instantiations of MemberRelationship
System.ComponentModel.TypeConverter (3)
System\ComponentModel\Design\Serialization\MemberRelationshipService.cs (3)
79return GetRelationship(new MemberRelationship(sourceOwner, sourceMember)); 86SetRelationship(new MemberRelationship(sourceOwner, sourceMember), value); 98return new MemberRelationship(retVal._owner.Target!, retVal._member);
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
1593MemberRelationship source = new(lhs, p); 1594MemberRelationship target = new(rhsPropTarget, rhsProp);
34 references to MemberRelationship
netstandard (1)
netstandard.cs (1)
289[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.Serialization.MemberRelationship))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
275[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.Serialization.MemberRelationship))]
System.ComponentModel.TypeConverter (21)
System\ComponentModel\Design\Serialization\MemberRelationshipService.cs (21)
37public MemberRelationship this[MemberRelationship source] 72public MemberRelationship this[object sourceOwner, MemberDescriptor sourceMember] 94protected virtual MemberRelationship GetRelationship(MemberRelationship source) 101return MemberRelationship.Empty; 109protected virtual void SetRelationship(MemberRelationship source, MemberRelationship relationship) 121private static void ThrowRelationshipNotSupported(MemberRelationship source, MemberRelationship relationship) 131public abstract bool SupportsRelationship(MemberRelationship source, MemberRelationship relationship); 142internal RelationshipEntry(MemberRelationship rel) 173public readonly struct MemberRelationship : IEquatable<MemberRelationship> 175public static readonly MemberRelationship Empty; 207public override bool Equals([NotNullWhen(true)] object? obj) => obj is MemberRelationship rel && Equals(rel); 212public bool Equals(MemberRelationship other) => other.Owner == Owner && other.Member == Member; 222public static bool operator ==(MemberRelationship left, MemberRelationship right) => left.Equals(right); 227public static bool operator !=(MemberRelationship left, MemberRelationship right) => !left.Equals(right);
System.Windows.Forms.Design (11)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (2)
162if (manager.TryGetService(out MemberRelationshipService? relationships) && relationships[comp, prop] != MemberRelationship.Empty) 164relationships[comp, prop] = MemberRelationship.Empty;
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (5)
1583MemberRelationship oldRelation = MemberRelationship.Empty; 1593MemberRelationship source = new(lhs, p); 1594MemberRelationship target = new(rhsPropTarget, rhsProp); 1607relationships[lhs, p] = MemberRelationship.Empty;
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (4)
301MemberRelationship relationship = relationships[value, property]; 303if (relationship != MemberRelationship.Empty) 407MemberRelationship relationship = relationships[value, descriptor]; 409if (relationship != MemberRelationship.Empty)