Share via


SimpleObjectMemory Class

Definition

Simple implement of IMemory.

public class SimpleObjectMemory : AdaptiveExpressions.Memory.IMemory
type SimpleObjectMemory = class
    interface IMemory
Public Class SimpleObjectMemory
Implements IMemory
Inheritance
SimpleObjectMemory
Implements

Constructors

SimpleObjectMemory(Object)

Initializes a new instance of the SimpleObjectMemory class. This wraps a simple object as IMemory.

Methods

SetValue(String, Object)

Set value to a given path.

ToString()

Returns a string that represents the current object.

TryGetValue(String, Object)

Try get value from a given path.

Version()

Return the version info of SimpleObjectMemory.

Extension Methods

RandomNext(IMemory, Int32, Int32, Nullable<Int32>)

Generator random seed and value from properties. If value is not null, the mock random value result would be: min + (value % (max - min)). Else if seed is not null, the seed of the random would be fixed.

Applies to