EyeAuras Docs EyeAuras Docs
EyeAuras Docs EyeAuras Docs
DocFX + Singulink = ♥

Search Results for

    Interface IVariablesAccessor

    Provides access to a collection of variables, allowing retrieval, addition, and update operations. This interface enables structured interaction with a variables collection, supporting typesafe access and manipulation.

    Inherited Members
    IEnumerable<AuraVariable>.GetEnumerator()
    ICanSetVariables.this[string]
    Namespace: EyeAuras.Scripting.UserSpace
    Assembly: EyeAuras.Scripting.Metadata.dll
    Syntax
    public interface IVariablesAccessor : IEnumerable<AuraVariable>, IEnumerable, ICanSetVariables
    Remarks

    Variables managed by an IVariablesAccessor instance can represent configuration settings, runtime state, or other dynamic properties.

    Properties

    Name Description
    Count

    Gets the total number of variables managed by the accessor.

    Methods

    Name Description
    AddOrUpdate<T>(string, T)

    Adds a new variable or updates an existing variable with the specified value.

    AddOrUpdate<T>(string, T, Func<T, T>)

    Adds a new variable or updates an existing variable with a value determined by the updater function.

    Contains(string)

    Determines whether a variable with the specified name exists.

    GetValue<T>(string)

    Gets the value of a variable of a specified type. Throws an exception if the variable is not found.

    GetValue<T>(string, T)

    Gets the value of a variable of a specified type, returning a default value if the variable is not found.

    Get<T>(string)

    Gets a ScriptVariable<T> wrapper for a variable, facilitating advanced interactions.

    TryGetValue<T>(string, out T)

    Tries to get the value of a variable of a specified type.

    Extension Methods

    ObjectExtensions.AddTo<TItem, TCollection>(TItem, ISourceList<TCollection>)
    ObjectExtensions.AddTo<TItem, TCollection>(TItem, ICollection<TCollection>)
    ObjectExtensions.CloneJson<T>(T)
    ObjectExtensions.CopyPropertiesTo<TSource, TTarget>(TSource, TTarget)
    ObjectExtensions.DumpToJson<T>(T)
    ObjectExtensions.DumpToTextRaw<T>(T)
    ObjectExtensions.DumpToText<T>(T)
    ObjectExtensions.Dump<T>(T)
    ObjectExtensions.EvalOrDefault<T, TValue>(T, Func<T, TValue>, TValue)
    ObjectExtensions.Eval<T, TValue>(T, Func<T, TValue>)
    ObjectExtensions.GetPropertyAccessor<TSource, TValue>(TSource, Expression<Func<TSource, TValue>>)
    ObjectExtensions.InsertTo<TItem, TCollection>(TItem, IList<TCollection>, int)
    ObjectExtensions.ToJson<T>(T, Formatting)
    ObjectExtensions.ToStringSafe<T>(T)
    ObjectExtensions.TransferPropertiesTo<TSource, TTarget>(TSource, TTarget, params string[])
    ObjectExtensions.WaitForAsync<TObject, T1>(TObject, Func<TObject, T1>, Predicate<T1>, TimeSpan, int)
    XDocumentExtensions.AddTo<T>(T, XContainer)
    ObjectExtensions.GetPropertyAccessor<TValue>(object, string)
    ObjectReflectionExtensions.GetPropertyTypeOrDefault(object, string)
    ObjectReflectionExtensions.GetPropertyValue<T>(object, string)
    ObjectReflectionExtensions.SetPropertyValue<T>(object, string, T)
    2025 © Xab3r. All rights reserved.