BsonElement Methods | 
The BsonElement type exposes the following members.
| Name | Description | |
|---|---|---|
| Clone | 
            Creates a shallow clone of the element (see also DeepClone).
              | |
| CompareTo | 
            Compares this BsonElement to another BsonElement.
              | |
| DeepClone | 
            Creates a deep clone of the element (see also Clone).
              | |
| Equals(BsonElement) | 
            Compares this BsonElement to another BsonElement.
              | |
| Equals(Object) | 
            Compares this BsonElement to another object.
              (Overrides ValueTypeEquals(Object).) | |
| GetHashCode | 
            Gets the hash code.
              (Overrides ValueTypeGetHashCode.) | |
| GetType | Gets the Type of the current instance.  (Inherited from Object.) | |
| ToString | 
            Returns a string representation of the value.
              (Overrides ValueTypeToString.) | 
| Name | Description | |
|---|---|---|
| ToBson | 
            Serializes an object to a BSON byte array.
              (Defined by BsonExtensionMethods.) | |
| ToBsonDocument | 
            Serializes an object to a BsonDocument.
              (Defined by BsonExtensionMethods.) | |
| ToJson | 
            Serializes an object to a JSON string.
              (Defined by BsonExtensionMethods.) |