Class BSONElement<T>
Base class for BSON elements with typed Value property
Inheritance
System.Object
BSONElement<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Serialization.BSON
Assembly: Azos.dll
Syntax
public abstract class BSONElement<T> : BSONElement, INamed, IConvertible, IJSONWritable
Type Parameters
Name | Description |
---|---|
T |
Constructors
BSONElement(Stream)
Declaration
protected BSONElement(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream |
BSONElement(String, T)
Declaration
protected BSONElement(string name, T value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
T | value |
Fields
m_Value
Declaration
protected T m_Value
Field Value
Type | Description |
---|---|
T |
Properties
ObjectValue
Gets/sets value as object. In normal cases use typed Value to get/set instead
Declaration
public override sealed object ObjectValue { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Overrides
Value
Declaration
public T Value { get; set; }
Property Value
Type | Description |
---|---|
T |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
Implements
System.IConvertible