29 references to ShouldSerializeResult
PresentationFramework (8)
System\Windows\Markup\Baml2006\WpfKnownMemberInvoker.cs (4)
45
public override
ShouldSerializeResult
ShouldSerializeValue(object instance)
81
return result ?
ShouldSerializeResult
.True :
ShouldSerializeResult
.False;
93
return
ShouldSerializeResult
.False;
System\Windows\Markup\Baml2006\WpfMemberInvoker.cs (4)
65
public override
ShouldSerializeResult
ShouldSerializeValue(object instance)
101
return result ?
ShouldSerializeResult
.True :
ShouldSerializeResult
.False;
113
return
ShouldSerializeResult
.False;
System.Xaml (11)
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
637
public override
ShouldSerializeResult
ShouldSerialize(XamlMember member, object instance)
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (1)
399
public override
ShouldSerializeResult
ShouldSerialize(XamlMember member, object instance)
System\Xaml\Schema\XamlMemberInvoker.cs (5)
105
public virtual
ShouldSerializeResult
ShouldSerializeValue(object instance)
109
return
ShouldSerializeResult
.Default;
146
return result ?
ShouldSerializeResult
.True :
ShouldSerializeResult
.False;
149
return
ShouldSerializeResult
.Default;
System\Xaml\XamlObjectReader.cs (3)
933
ShouldSerializeResult
shouldSerialize = context.Runtime.ShouldSerialize(property, source);
934
if (shouldSerialize !=
ShouldSerializeResult
.Default)
936
return shouldSerialize ==
ShouldSerializeResult
.True ? true : false;
System\Xaml\XamlRuntime.cs (1)
81
public abstract
ShouldSerializeResult
ShouldSerialize(XamlMember member, object instance);
System.Xaml.Tests (10)
System\Xaml\Schema\XamlMemberInvokerTests.cs (10)
168
Assert.Equal(result ?
ShouldSerializeResult
.True :
ShouldSerializeResult
.False, invoker.ShouldSerializeValue(instance));
183
Assert.Equal(result ?
ShouldSerializeResult
.True :
ShouldSerializeResult
.False, invoker.ShouldSerializeValue(instance));
198
Assert.Equal(result ?
ShouldSerializeResult
.True :
ShouldSerializeResult
.False, invoker.ShouldSerializeValue(instance));
213
Assert.Equal(result ?
ShouldSerializeResult
.True :
ShouldSerializeResult
.False, invoker.ShouldSerializeValue(instance));
223
Assert.Equal(
ShouldSerializeResult
.Default, invoker.ShouldSerializeValue(instance));
230
Assert.Equal(
ShouldSerializeResult
.Default, invoker.ShouldSerializeValue(null));