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