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