5 instantiations of SerializeClass
System.Xaml.Tests (5)
System\Xaml\Schema\XamlMemberInvokerTests.cs (5)
164var instance = new SerializeClass { ShouldSerializeResult = result }; 178var instance = new SerializeClass(); 193var instance = new SerializeClass(); 208var instance = new SerializeClass(); 219var instance = new SerializeClass();
34 references to SerializeClass
System.Xaml.Tests (34)
System\Xaml\Schema\XamlMemberInvokerTests.cs (34)
158[InlineData(nameof(SerializeClass.PublicProperty), true)] 159[InlineData(nameof(SerializeClass.PublicProperty), false)] 160[InlineData(nameof(SerializeClass.PrivateProperty), true)] 161[InlineData(nameof(SerializeClass.PrivateProperty), false)] 164var instance = new SerializeClass { ShouldSerializeResult = result }; 165PropertyInfo property = typeof(SerializeClass).GetProperty(name)!; 176SerializeClass.ShouldSerializeAttachablePublicPropertyResult = result; 178var instance = new SerializeClass(); 179MethodInfo getter = typeof(SerializeClass).GetMethod(nameof(SerializeClass.StaticGetter))!; 180MethodInfo setter = typeof(SerializeClass).GetMethod(nameof(SerializeClass.StaticSetter))!; 181var member = new XamlMember(nameof(SerializeClass.AttachablePublicProperty), getter, setter, new XamlSchemaContext()); 191SerializeClass.ShouldSerializeAttachablePrivatePropertyResult = result; 193var instance = new SerializeClass(); 194MethodInfo getter = typeof(SerializeClass).GetMethod(nameof(SerializeClass.StaticGetter))!; 195MethodInfo setter = typeof(SerializeClass).GetMethod(nameof(SerializeClass.StaticSetter))!; 196var member = new XamlMember(nameof(SerializeClass.AttachablePrivateProperty), getter, setter, new XamlSchemaContext()); 206SerializeClass.ShouldSerializeAttachableCustomPropertyResult = result; 208var instance = new SerializeClass(); 209MethodInfo getter = typeof(SerializeClass).GetMethod(nameof(SerializeClass.StaticGetter))!; 210MethodInfo setter = typeof(SerializeClass).GetMethod(nameof(SerializeClass.StaticSetter))!; 211var member = new CustomTargetType(nameof(SerializeClass.AttachableCustomProperty), getter, setter, new XamlSchemaContext()); 219var instance = new SerializeClass(); 220PropertyInfo property = typeof(SerializeClass).GetProperty(nameof(SerializeClass.NoSuchMethodProperty))!; 264public static bool ShouldSerializeAttachablePublicProperty(SerializeClass instance) => ShouldSerializeAttachablePublicPropertyResult; 267private static bool ShouldSerializeAttachablePrivateProperty(SerializeClass instance) => ShouldSerializeAttachablePrivatePropertyResult; 269public static int StaticGetter(SerializeClass instance) => 0; 270public static void StaticSetter(SerializeClass instance, int value) { }