Search Results for

    Show / Hide Table of Contents

    Class ObjectSnapshot

    Helper class to gather object snapshots and compare them using reflection.

    Inheritance
    System.Object
    ObjectSnapshot
    Namespace: FlaxEditor.Utilities
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    public sealed class ObjectSnapshot : Object

    Fields

    ObjectType

    The object type.

    Declaration
    public readonly ScriptType ObjectType
    Field Value
    FlaxEditor.Scripting.ScriptType

    Methods

    CaptureSnapshot(Object)

    Captures the snapshot of the object.

    Declaration
    public static ObjectSnapshot CaptureSnapshot(object obj)
    Parameters
    System.Object obj

    The object to capture.

    Returns
    ObjectSnapshot

    The object snapshot.

    Compare(Object)

    Gets a list of MemberComparison values that represent the fields and/or properties that differ between the given object and the captured state.

    Declaration
    public List<MemberComparison> Compare(object obj)
    Parameters
    System.Object obj

    The object to compare.

    Returns
    System.Collections.Generic.List<FlaxEditor.Utilities.MemberComparison>

    The collection of modified properties.

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat