Show / Hide Table of Contents

Class BSONSimpleValue

Represents simple value (like float, double, int, string etc).

Inheritance
System.Object
BSONValue
BSONValue<BSONSimpleValue>
BSONSimpleValue
Implements
System.IEquatable<BSONValue>
Inherited Members
BSONValue<BSONSimpleValue>.Recycle()
BSONValue<BSONSimpleValue>.ThrowMultipleRecycleError()
BSONValue.ListValue<T>()
BSONValue.NewBSONValue(BSONValueType)
BSONValue.NewViewRef(Int32)
BSONValue.NewBlobRef(Int32)
BSONValue.NewCachedDataRef(String)
BSONValue.NewTypeId(Int32)
BSONValue.NewBSONValue(Double)
BSONValue.NewBSONValue(Single)
BSONValue.NewBSONValue(Color)
BSONValue.NewBSONValue(Vector3)
BSONValue.NewBSONValue(Vector2)
BSONValue.NewBSONValue(Vector3i)
BSONValue.NewBSONValue(Vector2i)
BSONValue.NewBSONValue(Quaternion)
BSONValue.NewBSONValue(Guid)
BSONValue.NewBSONValue(LocString)
BSONValue.NewBSONValue(String)
BSONValue.NewBSONValue(Byte[], Boolean, Boolean)
BSONValue.NewBSONValue(UInt16[])
BSONValue.NewBsonValue(Int32[])
BSONValue.NewBsonValue(ICollection<UInt16>)
BSONValue.NewBsonValue(ICollection<Int32>)
BSONValue.NewBSONValue(Boolean)
BSONValue.NewBSONValue(DateTime)
BSONValue.NewBSONValue(Int32)
BSONValue.NewBSONValue(Int64)
BSONValue.NewBSONValue(UInt64)
BSONValue.NewBSONValue(Byte)
BSONValue.Cast<T>()
BSONValue.Equals(BSONValue)
BSONValue.ToString()
BSONValue.DebugToString()
BSONValue.ToStringIndented(Int32, HashSet<BSONValue>)
BSONValue.ValueType
BSONValue.ArrayValue
BSONValue.IsNull
Namespace: Eco.Shared.Serialization
Assembly: Eco.Shared.dll
Syntax
public class BSONSimpleValue : BSONValue<BSONSimpleValue>, IEquatable<BSONValue>

Properties

BinaryValue

Declaration
public override byte[] BinaryValue { get; }
Property Value
Type Description
System.Byte[]
Overrides
BSONValue.BinaryValue

BlobID

Declaration
public override int BlobID { get; }
Property Value
Type Description
System.Int32
Overrides
BSONValue.BlobID

BoolValue

Declaration
public override bool BoolValue { get; }
Property Value
Type Description
System.Boolean
Overrides
BSONValue.BoolValue

ByteSpanValue

Declaration
public override ReadOnlySpan<byte> ByteSpanValue { get; }
Property Value
Type Description
System.ReadOnlySpan<System.Byte>
Overrides
BSONValue.ByteSpanValue

ByteValue

Declaration
public override byte ByteValue { get; }
Property Value
Type Description
System.Byte
Overrides
BSONValue.ByteValue

ColorValue

Declaration
public override Color ColorValue { get; }
Property Value
Type Description
Color
Overrides
BSONValue.ColorValue

DateTimeValue

Declaration
public override DateTime DateTimeValue { get; }
Property Value
Type Description
System.DateTime
Overrides
BSONValue.DateTimeValue

DoubleValue

Declaration
public override double DoubleValue { get; }
Property Value
Type Description
System.Double
Overrides
BSONValue.DoubleValue

FloatValue

Declaration
public override float FloatValue { get; }
Property Value
Type Description
System.Single
Overrides
BSONValue.FloatValue

GuidValue

Declaration
public override Guid GuidValue { get; }
Property Value
Type Description
System.Guid
Overrides
BSONValue.GuidValue

Int32Value

Declaration
public override int Int32Value { get; }
Property Value
Type Description
System.Int32
Overrides
BSONValue.Int32Value

Int64Value

Declaration
public override long Int64Value { get; }
Property Value
Type Description
System.Int64
Overrides
BSONValue.Int64Value

IntArrayValue

Declaration
public override int[] IntArrayValue { get; }
Property Value
Type Description
System.Int32[]
Overrides
BSONValue.IntArrayValue

IntSpanValue

Declaration
public override ReadOnlySpan<int> IntSpanValue { get; }
Property Value
Type Description
System.ReadOnlySpan<System.Int32>
Overrides
BSONValue.IntSpanValue

LocStringValue

Declaration
public override LocString LocStringValue { get; }
Property Value
Type Description
LocString
Overrides
BSONValue.LocStringValue

ObjectValue

Declaration
public override BSONObject ObjectValue { get; }
Property Value
Type Description
BSONObject
Overrides
BSONValue.ObjectValue

QuaternionValue

Declaration
public override Quaternion QuaternionValue { get; }
Property Value
Type Description
Quaternion
Overrides
BSONValue.QuaternionValue

StringValue

Declaration
public override string StringValue { get; }
Property Value
Type Description
System.String
Overrides
BSONValue.StringValue

UInt64Value

Declaration
public override ulong UInt64Value { get; }
Property Value
Type Description
System.UInt64
Overrides
BSONValue.UInt64Value

UShortArrayValue

Declaration
public override ushort[] UShortArrayValue { get; }
Property Value
Type Description
System.UInt16[]
Overrides
BSONValue.UShortArrayValue

UShortSpanValue

Declaration
public override ReadOnlySpan<ushort> UShortSpanValue { get; }
Property Value
Type Description
System.ReadOnlySpan<System.UInt16>
Overrides
BSONValue.UShortSpanValue

Vector2iValue

Declaration
public override Vector2i Vector2iValue { get; }
Property Value
Type Description
Vector2i
Overrides
BSONValue.Vector2iValue

Vector2Value

Declaration
public override Vector2 Vector2Value { get; }
Property Value
Type Description
Vector2
Overrides
BSONValue.Vector2Value

Vector3iValue

Declaration
public override Vector3i Vector3iValue { get; }
Property Value
Type Description
Vector3i
Overrides
BSONValue.Vector3iValue

Vector3iValueNullable

Declaration
public override Nullable<Vector3i> Vector3iValueNullable { get; }
Property Value
Type Description
System.Nullable<Vector3i>
Overrides
BSONValue.Vector3iValueNullable

Vector3Value

Declaration
public override Vector3 Vector3Value { get; }
Property Value
Type Description
System.Numerics.Vector3
Overrides
BSONValue.Vector3Value

ViewID

Declaration
public override int ViewID { get; }
Property Value
Type Description
System.Int32
Overrides
BSONValue.ViewID

ViewTypeID

Declaration
public override int ViewTypeID { get; }
Property Value
Type Description
System.Int32
Overrides
BSONValue.ViewTypeID

Methods

New()

Declaration
public static BSONSimpleValue New()
Returns
Type Description
BSONSimpleValue

New(BSONValueType)

Declaration
public static BSONSimpleValue New(BSONValueType valueType)
Parameters
Type Name Description
BSONValueType valueType
Returns
Type Description
BSONSimpleValue

TryPerformRecycle()

Releases all resources (nullify refs for GC and return pooled objects).

Declaration
protected override bool TryPerformRecycle()
Returns
Type Description
System.Boolean
Overrides
Eco.Shared.Serialization.BSONValue<Eco.Shared.Serialization.BSONSimpleValue>.TryPerformRecycle()

Implements

System.IEquatable<>

Extension Methods

BsonValueBackgroundRecycler.RecycleInBackground(BSONValue)
SimpleBSON.WithStatsRecording(BSONValue)
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>)
ViewManager.UnpackageView<T>(BSONValue)
ViewManager.UnpackageView(BSONValue)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾