Search Results for

    Show / Hide Table of Contents

    Class ObjectExtensions

    Static class that holds extension methods for System.Objects.

    Inheritance
    System.Object
    ObjectExtensions
    Inherited Members
    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: Dangl
    Assembly: Dangl.Common.dll
    Syntax
    public static class ObjectExtensions

    Methods

    | Improve this Doc View Source

    DeepCopy<T>(T)

    This creates a copy that is value but not reference of the original object. It does copy the object and all its properties, and also recursively traverses the tree. It handles circular references. Delegate types, like Action or Func, are not copied.

    Declaration
    public static T DeepCopy<T>(this T original)
    Parameters
    Type Name Description
    T original
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Dangl IT GmbH