Class SerializableObjectCloneExtension
Reference Article http://www.codeproject.com/KB/tips/SerializedObjectCloner.aspx Provides a method for performing a deep copy of an object. Binary Serialization is used to perform the copy.
Inheritance
System.Object
    SerializableObjectCloneExtension
  
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
    Namespace: Sartorius.SAF.Extensions
Assembly: Sartorius.SAF.dll
Syntax
public static class SerializableObjectCloneExtension
  Methods
View SourceClone<T>(T)
Perform a deep Copy of the object.
Declaration
public static T Clone<T>(this T source)
  Parameters
| Type | Name | Description | 
|---|---|---|
| T | source | The object instance to copy.  | 
      
Returns
| Type | Description | 
|---|---|
| T | The copied object or null.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| T | The type of object being copied.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| System.ArgumentException | Throw a exception if the given reference is not serializable.  | 
      
CloneArray<T>(T[])
Clones the array.
Declaration
public static T[] CloneArray<T>(this T[] source)
  Parameters
| Type | Name | Description | 
|---|---|---|
| T[] | source | The source.  | 
      
Returns
| Type | Description | 
|---|---|
| T[] | 
Type Parameters
| Name | Description | 
|---|---|
| T |