4 types derived from XamlMemberInvoker
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfKnownMemberInvoker.cs (1)
10
class WpfKnownMemberInvoker :
XamlMemberInvoker
System\Windows\Markup\Baml2006\WpfMemberInvoker.cs (1)
10
internal class WpfMemberInvoker :
XamlMemberInvoker
System.Xaml (1)
System\Xaml\Schema\XamlMemberInvoker.cs (1)
165
private class DirectiveMemberInvoker :
XamlMemberInvoker
System.Xaml.Tests (1)
System\Xaml\Schema\XamlMemberInvokerTests.cs (1)
234
private class SubMemberInvoker :
XamlMemberInvoker
20 instantiations of XamlMemberInvoker
System.Xaml (2)
System\Xaml\Schema\XamlMemberInvoker.cs (1)
36
s_Unknown = new
XamlMemberInvoker
();
System\Xaml\XamlMember.cs (1)
535
return new
XamlMemberInvoker
(this);
System.Xaml.Tests (18)
System\Xaml\Schema\XamlMemberInvokerTests.cs (15)
26
var invoker = new
XamlMemberInvoker
(member);
37
var invoker = new
XamlMemberInvoker
(member);
45
Assert.Throws<ArgumentNullException>("member", () => new
XamlMemberInvoker
(null));
64
yield return new object[] { new
XamlMemberInvoker
(member) };
73
var invoker = new
XamlMemberInvoker
(member);
84
var invoker = new
XamlMemberInvoker
(member);
100
var invoker = new
XamlMemberInvoker
(member);
117
var invoker = new
XamlMemberInvoker
(member);
129
var invoker = new
XamlMemberInvoker
(member);
146
var invoker = new
XamlMemberInvoker
(member);
167
var invoker = new
XamlMemberInvoker
(member);
182
var invoker = new
XamlMemberInvoker
(member);
197
var invoker = new
XamlMemberInvoker
(member);
212
var invoker = new
XamlMemberInvoker
(member);
222
var invoker = new
XamlMemberInvoker
(member);
System\Xaml\XamlMemberTests.cs (3)
70
yield return new object?[] { typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new XamlSchemaContext(), new
XamlMemberInvoker
(new XamlMember("name", type, false)) };
126
yield return new object?[] { typeof(DataClass).GetEvent(nameof(DataClass.Event))!, new XamlSchemaContext(), new
XamlMemberInvoker
(new XamlMember("name", type, false)) };
710
var invoker = new
XamlMemberInvoker
(new XamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event)), new XamlSchemaContext()));
87 references to XamlMemberInvoker
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfKnownMember.cs (1)
108
protected override System.Xaml.Schema.
XamlMemberInvoker
LookupInvoker()
System\Windows\Markup\Baml2006\WpfXamlMember.cs (1)
241
protected override
XamlMemberInvoker
LookupInvoker()
System.Xaml (20)
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (1)
448
return xamlMember.Invoker.GetType() == typeof(
XamlMemberInvoker
);
System\Xaml\Schema\MemberReflector.cs (2)
98
s_UnknownReflector.Invoker =
XamlMemberInvoker
.UnknownInvoker;
173
internal
XamlMemberInvoker
Invoker { get; set; }
System\Xaml\Schema\XamlDirective.cs (2)
119
protected sealed override
XamlMemberInvoker
LookupInvoker()
121
return
XamlMemberInvoker
.DirectiveInvoker;
System\Xaml\Schema\XamlMemberInvoker.cs (4)
14
private static
XamlMemberInvoker
s_Directive;
15
private static
XamlMemberInvoker
s_Unknown;
30
public static
XamlMemberInvoker
UnknownInvoker
91
internal static
XamlMemberInvoker
DirectiveInvoker
System\Xaml\XamlMember.cs (11)
47
public XamlMember(PropertyInfo propertyInfo, XamlSchemaContext schemaContext,
XamlMemberInvoker
invoker)
52
internal XamlMember(PropertyInfo propertyInfo, XamlSchemaContext schemaContext,
XamlMemberInvoker
invoker, MemberReflector reflector)
70
public XamlMember(EventInfo eventInfo, XamlSchemaContext schemaContext,
XamlMemberInvoker
invoker)
75
internal XamlMember(EventInfo eventInfo, XamlSchemaContext schemaContext,
XamlMemberInvoker
invoker, MemberReflector reflector)
95
XamlSchemaContext schemaContext,
XamlMemberInvoker
invoker)
101
XamlSchemaContext schemaContext,
XamlMemberInvoker
invoker, MemberReflector reflector)
129
XamlMemberInvoker
invoker)
135
XamlMemberInvoker
invoker, MemberReflector reflector)
160
public
XamlMemberInvoker
Invoker
167
_reflector.Invoker = LookupInvoker() ??
XamlMemberInvoker
.UnknownInvoker;
531
protected virtual
XamlMemberInvoker
LookupInvoker()
System.Xaml.Tests (65)
System\Xaml\Schema\XamlMemberInvokerTests.cs (22)
26
var
invoker = new XamlMemberInvoker(member);
37
var
invoker = new XamlMemberInvoker(member);
51
XamlMemberInvoker
invoker =
XamlMemberInvoker
.UnknownInvoker;
52
Assert.Same(invoker,
XamlMemberInvoker
.UnknownInvoker);
59
yield return new object[] {
XamlMemberInvoker
.UnknownInvoker };
73
var
invoker = new XamlMemberInvoker(member);
84
var
invoker = new XamlMemberInvoker(member);
91
Assert.Throws<ArgumentNullException>("instance", () =>
XamlMemberInvoker
.UnknownInvoker.GetValue(null));
100
var
invoker = new XamlMemberInvoker(member);
106
public void GetValue_UnknownInvoker_ThrowsNotSupportedException(
XamlMemberInvoker
invoker)
117
var
invoker = new XamlMemberInvoker(member);
129
var
invoker = new XamlMemberInvoker(member);
137
Assert.Throws<ArgumentNullException>("instance", () =>
XamlMemberInvoker
.UnknownInvoker.SetValue(null, "value"));
146
var
invoker = new XamlMemberInvoker(member);
152
public void SetValue_UnknownInvoker_ThrowsNotSupportedException(
XamlMemberInvoker
invoker)
167
var
invoker = new XamlMemberInvoker(member);
182
var
invoker = new XamlMemberInvoker(member);
197
var
invoker = new XamlMemberInvoker(member);
212
var
invoker = new XamlMemberInvoker(member);
222
var
invoker = new XamlMemberInvoker(member);
228
public void ShouldSerializeValue_Unknown_ReturnsDefault(
XamlMemberInvoker
invoker)
System\Xaml\XamlDirectiveTests.cs (1)
289
public
XamlMemberInvoker
LookupInvokerEntry() => LookupInvoker();
System\Xaml\XamlMemberTests.cs (31)
63
Assert.NotEqual(
XamlMemberInvoker
.UnknownInvoker, member.Invoker);
75
public void Ctor_PropertyInfo_XamlSchemaContext_XamlMemberInvoker(PropertyInfo propertyInfo, XamlSchemaContext schemaContext,
XamlMemberInvoker
invoker)
87
Assert.NotEqual(
XamlMemberInvoker
.UnknownInvoker, member.Invoker);
99
Assert.Throws<ArgumentNullException>("propertyInfo", () => new XamlMember((PropertyInfo)null!, new XamlSchemaContext(),
XamlMemberInvoker
.UnknownInvoker));
119
Assert.NotEqual(
XamlMemberInvoker
.UnknownInvoker, member.Invoker);
131
public void Ctor_EventInfo_XamlSchemaContext_XamlMemberInvoker(EventInfo eventInfo, XamlSchemaContext schemaContext,
XamlMemberInvoker
invoker)
143
Assert.NotEqual(
XamlMemberInvoker
.UnknownInvoker, member.Invoker);
155
Assert.Throws<ArgumentNullException>("eventInfo", () => new XamlMember((EventInfo)null!, new XamlSchemaContext(),
XamlMemberInvoker
.UnknownInvoker));
178
Assert.NotEqual(
XamlMemberInvoker
.UnknownInvoker, member.Invoker);
184
yield return new object?[] { "name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext(),
XamlMemberInvoker
.UnknownInvoker };
191
public void Ctor_String_MethodInfo_MethodInfo_XamlSchemaContext_XamlMemberInvoker(string attachablePropertyName, MethodInfo getter, MethodInfo setter, XamlSchemaContext schemaContext,
XamlMemberInvoker
invoker)
203
Assert.NotEqual(
XamlMemberInvoker
.UnknownInvoker, member.Invoker);
216
Assert.Throws<ArgumentNullException>("attachablePropertyName", () => new XamlMember(null, getter, null, new XamlSchemaContext(),
XamlMemberInvoker
.UnknownInvoker));
223
Assert.Throws<ArgumentNullException>(() => new XamlMember("name", null, null, new XamlSchemaContext(),
XamlMemberInvoker
.UnknownInvoker));
234
Assert.Throws<ArgumentException>("getter", () => new XamlMember("name", getter, null, new XamlSchemaContext(),
XamlMemberInvoker
.UnknownInvoker));
244
Assert.Throws<ArgumentException>("setter", () => new XamlMember("name", null, setter, new XamlSchemaContext(),
XamlMemberInvoker
.UnknownInvoker));
265
Assert.NotEqual(
XamlMemberInvoker
.UnknownInvoker, member.Invoker);
271
yield return new object?[] { "", typeof(AccessorClass).GetMethod(nameof(AccessorClass.StaticSetMethod))!, new XamlSchemaContext(),
XamlMemberInvoker
.UnknownInvoker };
276
public void Ctor_String_MethodInfo_XamlSchemaContext_XamlMemberInvoker(string attachablePropertyName, MethodInfo adder, XamlSchemaContext schemaContext,
XamlMemberInvoker
invoker)
288
Assert.NotEqual(
XamlMemberInvoker
.UnknownInvoker, member.Invoker);
301
Assert.Throws<ArgumentNullException>("attachableEventName", () => new XamlMember(null, adder, new XamlSchemaContext(),
XamlMemberInvoker
.UnknownInvoker));
308
Assert.Throws<ArgumentNullException>("adder", () => new XamlMember("name", null, new XamlSchemaContext(),
XamlMemberInvoker
.UnknownInvoker));
318
Assert.Throws<ArgumentException>("adder", () => new XamlMember("name", adder, new XamlSchemaContext(),
XamlMemberInvoker
.UnknownInvoker));
328
Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(propertyInfo, null,
XamlMemberInvoker
.UnknownInvoker));
329
Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(eventInfo, null,
XamlMemberInvoker
.UnknownInvoker));
331
Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(propertyInfo.Name, propertyInfo.GetGetMethod(), propertyInfo.GetSetMethod(), null,
XamlMemberInvoker
.UnknownInvoker));
333
Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(eventInfo.Name, eventInfo.GetAddMethod(), null,
XamlMemberInvoker
.UnknownInvoker));
696
Assert.Equal(
XamlMemberInvoker
.UnknownInvoker, member.Invoker);
710
var
invoker = new XamlMemberInvoker(new XamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event)), new XamlSchemaContext()));
725
Assert.Equal(
XamlMemberInvoker
.UnknownInvoker, member.Invoker);
732
Assert.Equal(
XamlMemberInvoker
.UnknownInvoker, directive.Invoker);
System\Xaml\XamlMemberTests.Mocks.cs (11)
22
public SubXamlMember(PropertyInfo propertyInfo, XamlSchemaContext schemaContext,
XamlMemberInvoker
invoker) : base(propertyInfo, schemaContext, invoker) { }
26
public SubXamlMember(string attachablePropertyName, MethodInfo? getter, MethodInfo? setter, XamlSchemaContext schemaContext,
XamlMemberInvoker
invoker) : base(attachablePropertyName, getter, setter, schemaContext, invoker) { }
30
public SubXamlMember(EventInfo eventInfo, XamlSchemaContext schemaContext,
XamlMemberInvoker
invoker) : base(eventInfo, schemaContext, invoker) { }
34
public SubXamlMember(string attachableEventName, MethodInfo adder, XamlSchemaContext schemaContext,
XamlMemberInvoker
invoker) : base(attachableEventName, adder, schemaContext, invoker) { }
42
public
XamlMemberInvoker
LookupInvokerEntry() => LookupInvoker();
81
public CustomXamlMember(PropertyInfo propertyInfo, XamlSchemaContext schemaContext,
XamlMemberInvoker
invoker) : base(propertyInfo, schemaContext, invoker) { }
85
public CustomXamlMember(string attachablePropertyName, MethodInfo getter, MethodInfo setter, XamlSchemaContext schemaContext,
XamlMemberInvoker
invoker) : base(attachablePropertyName, getter, setter, schemaContext, invoker) { }
89
public CustomXamlMember(EventInfo eventInfo, XamlSchemaContext schemaContext,
XamlMemberInvoker
invoker) : base(eventInfo, schemaContext, invoker) { }
93
public CustomXamlMember(string attachableEventName, MethodInfo adder, XamlSchemaContext schemaContext,
XamlMemberInvoker
invoker) : base(attachableEventName, adder, schemaContext, invoker) { }
113
public Optional<
XamlMemberInvoker
?> LookupInvokerResult { get; set; }
114
protected override
XamlMemberInvoker
LookupInvoker()