CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
EmailAddress.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="EmailAddress.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Class that can be used for testing serialization behaviour for classes implementing IMobileObject</summary>
7//-----------------------------------------------------------------------
9using System;
10using System.Collections.Generic;
11using System.Text;
12
14{
15
21 {
22
23 public string Email { get; set; }
24
25 public void GetChildren(SerializationInfo info, MobileFormatter formatter)
26 {
27 }
28
29 public void GetState(SerializationInfo info)
30 {
31 info.AddValue("Email", Email);
32 }
33
34 public void SetChildren(SerializationInfo info, MobileFormatter formatter)
35 {
36 }
37
38 public void SetState(SerializationInfo info)
39 {
40 Email = info.GetValue<string>("Email");
41 }
42 }
43}
Object already implementing IMobileObject that can be used for testing serialization behaviour
Definition: EmailAddress.cs:21
void SetState(SerializationInfo info)
Method called by MobileFormatter when an object should be deserialized.
Definition: EmailAddress.cs:38
void GetChildren(SerializationInfo info, MobileFormatter formatter)
Method called by MobileFormatter when an object should serialize its child references.
Definition: EmailAddress.cs:25
void SetChildren(SerializationInfo info, MobileFormatter formatter)
Method called by MobileFormatter when an object should deserialize its child references.
Definition: EmailAddress.cs:34
void GetState(SerializationInfo info)
Method called by MobileFormatter when an object should serialize its data.
Definition: EmailAddress.cs:29
Serializes and deserializes objects at the field level.
Object containing the serialization data for a specific object.
void AddValue(string name, object value)
Adds a value to the serialization stream.
Interface to be implemented by any object that supports serialization by the SerializationFormatterFa...
@ Serializable
Prevents updating or inserting until the transaction is complete.