CSharpTest.Net
ContinueOnError Property
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Reflection Namespace > PropertySerializer Class : ContinueOnError Property

Glossary Item Box

Gets or sets a value that controls whether exceptions are swallowed and logged durring serialization or deserialization routines.

Syntax

Visual Basic (Declaration) 
Public Property ContinueOnError As Boolean
C# 
public bool ContinueOnError {get; set;}

Example

Library/Library.Test/TestPropertySerializer.cs

C#Copy Code
HaveReadOnly o = new HaveReadOnly();
o.Value = "a";

PropertySerializer<HaveReadOnly> ser = new PropertySerializer<HaveReadOnly>("Value", "WriteOnly");
ser.ContinueOnError = true;
Assert.AreEqual(true, ser.ContinueOnError);

ser.Serialize(o, Dictionary);
VB.NETCopy Code
Dim o As New HaveReadOnly()
o.Value = "a"

Dim ser As New PropertySerializer(Of HaveReadOnly)("Value", "WriteOnly")
ser.ContinueOnError = True
Assert.AreEqual(True, ser.ContinueOnError)

ser.Serialize(o, Dictionary)

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys