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.
NullPlaceholder.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="NullPlaceholder.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Placeholder for null child objects.</summary>
7//-----------------------------------------------------------------------
8using System;
9
11{
15 [Serializable()]
16 public sealed class NullPlaceholder : IMobileObject
17 {
22 {
23 // Nothing
24 }
25
26 #region IMobileObject Members
27
36 public void GetState(SerializationInfo info)
37 {
38 // Nothing
39 }
40
52 public void GetChildren(SerializationInfo info, MobileFormatter formatter)
53 {
54 // Nothing
55 }
56
65 public void SetState(SerializationInfo info)
66 {
67 // Nothing
68 }
69
81 public void SetChildren(SerializationInfo info, MobileFormatter formatter)
82 {
83 // Nothing
84 }
85
86 #endregion
87 }
88}
Serializes and deserializes objects at the field level.
Placeholder for null child objects.
void SetState(SerializationInfo info)
Method called by MobileFormatter when an object should be deserialized.
void SetChildren(SerializationInfo info, MobileFormatter formatter)
Method called by MobileFormatter when an object should deserialize its child references.
void GetState(SerializationInfo info)
Method called by MobileFormatter when an object should serialize its data.
void GetChildren(SerializationInfo info, MobileFormatter formatter)
Method called by MobileFormatter when an object should serialize its child references.
NullPlaceholder()
Creates an instance of the type.
Object containing the serialization data for a specific object.
Interface to be implemented by any object that supports serialization by the SerializationFormatterFa...
@ Serializable
Prevents updating or inserting until the transaction is complete.