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