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.
Csla.Core.ObjectCloner Class Reference

This class provides an implementation of a deep clone of a complete object graph. More...

Public Member Functions

 ObjectCloner (ApplicationContext applicationContext)
 Creates an instance of the type. More...
 
object Clone (object obj)
 Clones an object. More...
 

Static Public Member Functions

static ObjectCloner GetInstance (ApplicationContext applicationContext)
 Gets an instance of ObjectCloner. More...
 

Detailed Description

This class provides an implementation of a deep clone of a complete object graph.

Objects are copied at the field level.

Definition at line 19 of file ObjectCloner.cs.

Constructor & Destructor Documentation

◆ ObjectCloner()

Csla.Core.ObjectCloner.ObjectCloner ( ApplicationContext  applicationContext)

Creates an instance of the type.

Parameters
applicationContext

Definition at line 27 of file ObjectCloner.cs.

Member Function Documentation

◆ Clone()

object Csla.Core.ObjectCloner.Clone ( object  obj)

Clones an object.

Parameters
objThe object to clone.

The object to be cloned must be serializable.

The serialization is performed using the formatter specified in ApplicationContext.

The default is to use the MobileFormatter.

Definition at line 52 of file ObjectCloner.cs.

◆ GetInstance()

static ObjectCloner Csla.Core.ObjectCloner.GetInstance ( ApplicationContext  applicationContext)
static

Gets an instance of ObjectCloner.

Parameters
applicationContext
Returns

Definition at line 37 of file ObjectCloner.cs.