15 instantiations of AttachableMemberIdentifier
System.Xaml.Tests (15)
System\Xaml\AttachableMemberIdentifierTests.cs (15)
18var identifier = new AttachableMemberIdentifier(declaringType, memberName); 25var identifier = new AttachableMemberIdentifier(typeof(int), "memberName"); 27yield return new object?[] { identifier, new AttachableMemberIdentifier(typeof(int), "memberName"), true }; 28yield return new object?[] { identifier, new AttachableMemberIdentifier(typeof(string), "memberName"), false }; 29yield return new object?[] { identifier, new AttachableMemberIdentifier(null, "memberName"), false }; 30yield return new object?[] { identifier, new AttachableMemberIdentifier(typeof(int), "otherMemberName"), false }; 31yield return new object?[] { identifier, new AttachableMemberIdentifier(typeof(int), null), false }; 32yield return new object?[] { new AttachableMemberIdentifier(null, null), new AttachableMemberIdentifier(null, null), true }; 33yield return new object?[] { new AttachableMemberIdentifier(null, null), new AttachableMemberIdentifier(typeof(int), null), false }; 34yield return new object?[] { new AttachableMemberIdentifier(null, null), new AttachableMemberIdentifier(null, "memberName"), false }; 69yield return new object[] { new AttachableMemberIdentifier(null, "memberName"), "memberName" }; 70yield return new object[] { new AttachableMemberIdentifier(typeof(int), "memberName"), "System.Int32.memberName" };
40 references to AttachableMemberIdentifier
System.Xaml (34)
System\Xaml\AttachableMemberIdentifier.cs (7)
9public class AttachableMemberIdentifier : IEquatable<AttachableMemberIdentifier> 36public static bool operator !=(AttachableMemberIdentifier left, AttachableMemberIdentifier right) 41public static bool operator ==(AttachableMemberIdentifier left, AttachableMemberIdentifier right) 53return Equals(obj as AttachableMemberIdentifier); 56public bool Equals(AttachableMemberIdentifier other)
System\Xaml\AttachablePropertyServices.cs (18)
31public static void CopyPropertiesTo(object instance, KeyValuePair<AttachableMemberIdentifier, object>[] array, int index) 48public static bool RemoveProperty(object instance, AttachableMemberIdentifier name) 63public static void SetProperty(object instance, AttachableMemberIdentifier name, object value) 82public static bool TryGetProperty(object instance, AttachableMemberIdentifier name, out object value) 87public static bool TryGetProperty<T>(object instance, AttachableMemberIdentifier name, out T value) 121Lazy<ConditionalWeakTable<object, Dictionary<AttachableMemberIdentifier, object>>> instanceStorage = 122new Lazy<ConditionalWeakTable<object, Dictionary<AttachableMemberIdentifier, object>>>(); 124public void CopyPropertiesTo(object instance, KeyValuePair<AttachableMemberIdentifier, object>[] array, int index) 128Dictionary<AttachableMemberIdentifier, object> instanceProperties; 133((ICollection<KeyValuePair<AttachableMemberIdentifier, object>>)instanceProperties).CopyTo(array, index); 143Dictionary<AttachableMemberIdentifier, object> instanceProperties; 159public bool RemoveProperty(object instance, AttachableMemberIdentifier name) 163Dictionary<AttachableMemberIdentifier, object> instanceProperties; 179public void SetProperty(object instance, AttachableMemberIdentifier name, object value) 181Dictionary<AttachableMemberIdentifier, object> instanceProperties; 184instanceProperties = new Dictionary<AttachableMemberIdentifier, object>(); 213public bool TryGetProperty<T>(object instance, AttachableMemberIdentifier name, out T value) 217Dictionary<AttachableMemberIdentifier, object> instanceProperties;
System\Xaml\IAttachedPropertyStore.cs (4)
19void CopyPropertiesTo(KeyValuePair<AttachableMemberIdentifier, object>[] array, int index); 22bool RemoveProperty(AttachableMemberIdentifier attachableMemberIdentifier); 25void SetProperty(AttachableMemberIdentifier attachableMemberIdentifier, object value); 32bool TryGetProperty(AttachableMemberIdentifier attachableMemberIdentifier, out object value);
System\Xaml\Runtime\ClrObjectRuntime.cs (3)
436public override KeyValuePair<AttachableMemberIdentifier, object>[] GetAttachedProperties(object instance) 440KeyValuePair<AttachableMemberIdentifier, object>[] result = null; 444result = new KeyValuePair<AttachableMemberIdentifier, object>[count];
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (1)
107public override KeyValuePair<AttachableMemberIdentifier, object>[] GetAttachedProperties(object instance)
System\Xaml\XamlRuntime.cs (1)
73public abstract KeyValuePair<AttachableMemberIdentifier, object>[] GetAttachedProperties(object instance);
System.Xaml.Tests (6)
System\Xaml\AttachableMemberIdentifierTests.cs (6)
18var identifier = new AttachableMemberIdentifier(declaringType, memberName); 25var identifier = new AttachableMemberIdentifier(typeof(int), "memberName"); 44public void Equals_Invoke_ReturnsExpected(AttachableMemberIdentifier identifier, object obj, bool expected) 46AttachableMemberIdentifier? other = obj as AttachableMemberIdentifier; 75public void ToString_Invoke_ReturnsExpected(AttachableMemberIdentifier identifier, string expected)