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