CSharpTest.Net
Deserialize(INameValueStore) Method
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Reflection Namespace > ObjectSerializer Class > Deserialize Method : Deserialize(INameValueStore) Method

storage

Glossary Item Box

Reads all properties from the specified proeprty serialization

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Deserialize( _
   ByVal storage As INameValueStore _
) 
C# 
public void Deserialize( 
   INameValueStore storage
)

Parameters

storage

Example

Library/Library.Test/TestPropertySerializer.cs

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

ObjectSerializer ser = new ObjectSerializer(data, "Value");
ser.Serialize(Dictionary);

HaveReadOnly test = new HaveReadOnly();
ser = new ObjectSerializer(test, "Value");
ser.Deserialize(Dictionary);

Assert.AreEqual("a", test.Value);
VB.NETCopy Code
Dim data As New HaveReadOnly()
data.Value = "a"

Dim ser As New ObjectSerializer(data, "Value")
ser.Serialize(Dictionary)

Dim test As New HaveReadOnly()
ser = New ObjectSerializer(test, "Value")
ser.Deserialize(Dictionary)

Assert.AreEqual("a", test.Value)

Requirements

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

See Also

Generated with Document! X 2011 by Innovasys