Show / Hide Table of Contents

Class EnvVar

An on-demand variable queried and cached by the client, while the server notifies on cache invalidate. Cannot be null.

Inheritance
System.Object
EnvVar
Implements
IBsonSerialize
IBsonSerializable
IBsonDeserializable
Namespace: Eco.Shared.SharedTypes
Assembly: Eco.Shared.dll
Syntax
public sealed class EnvVar : ValueType, IBsonSerialize, IBsonSerializable, IBsonDeserializable

Constructors

EnvVar()

Declaration
public EnvVar()

EnvVar(String, Object, Boolean)

Declaration
public EnvVar(string key, object value, bool cache)
Parameters
Type Name Description
System.String key
System.Object value
System.Boolean cache

Fields

Cache

Declaration
public bool Cache
Field Value
Type Description
System.Boolean

Key

Declaration
public string Key
Field Value
Type Description
System.String

Value

Declaration
public object Value
Field Value
Type Description
System.Object

Methods

FromBson(BSONArray)

Declaration
public void FromBson(BSONArray bson)
Parameters
Type Name Description
BSONArray bson

ToBson()

Declaration
public BSONArray ToBson()
Returns
Type Description
BSONArray

ToBson(BsonSerializationContext)

Declaration
public BSONArray ToBson(BsonSerializationContext context)
Parameters
Type Name Description
BsonSerializationContext context
Returns
Type Description
BSONArray

Implements

IBsonSerialize
IBsonSerializable
IBsonDeserializable

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾