### YamlMime:ManagedReference
items:
- uid: adas_core.Domain.Utils.BsonUtils
  commentId: T:adas_core.Domain.Utils.BsonUtils
  id: BsonUtils
  parent: adas_core.Domain.Utils
  children:
  - adas_core.Domain.Utils.BsonUtils.Get(MongoDB.Bson.BsonDocument,System.String)
  - adas_core.Domain.Utils.BsonUtils.ToObject(MongoDB.Bson.BsonValue)
  langs:
  - csharp
  - vb
  name: BsonUtils
  nameWithType: BsonUtils
  fullName: adas_core.Domain.Utils.BsonUtils
  type: Class
  source:
    remote:
      path: adas-core.Domain/Utils/BsonUtils.cs
      branch: document/release/1.0.1
      repo: https://git.teralevel.io/adas/adas-core.git
    id: BsonUtils
    path: ../../adas-core.Domain/Utils/BsonUtils.cs
    startLine: 7
  assemblies:
  - adas-core.Domain
  namespace: adas_core.Domain.Utils
  summary: Provides static utility methods for working with BSON (Binary JSON) data.
  example: []
  syntax:
    content: public static class BsonUtils
    content.vb: Public Module BsonUtils
  inheritance:
  - System.Object
  inheritedMembers:
  - 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)
  - System.Object.ToString
- uid: adas_core.Domain.Utils.BsonUtils.ToObject(MongoDB.Bson.BsonValue)
  commentId: M:adas_core.Domain.Utils.BsonUtils.ToObject(MongoDB.Bson.BsonValue)
  id: ToObject(MongoDB.Bson.BsonValue)
  isExtensionMethod: true
  parent: adas_core.Domain.Utils.BsonUtils
  langs:
  - csharp
  - vb
  name: ToObject(BsonValue)
  nameWithType: BsonUtils.ToObject(BsonValue)
  fullName: adas_core.Domain.Utils.BsonUtils.ToObject(MongoDB.Bson.BsonValue)
  type: Method
  source:
    remote:
      path: adas-core.Domain/Utils/BsonUtils.cs
      branch: document/release/1.0.1
      repo: https://git.teralevel.io/adas/adas-core.git
    id: ToObject
    path: ../../adas-core.Domain/Utils/BsonUtils.cs
    startLine: 14
  assemblies:
  - adas-core.Domain
  namespace: adas_core.Domain.Utils
  summary: Converts a <xref href="MongoDB.Bson.BsonValue" data-throw-if-not-resolved="false"></xref> to a corresponding common language runtime (CLR) scalar object, supporting <xref href="System.Int32" data-throw-if-not-resolved="false"></xref>, <xref href="System.Int64" data-throw-if-not-resolved="false"></xref>, <xref href="System.Double" data-throw-if-not-resolved="false"></xref>, <xref href="System.DateTime" data-throw-if-not-resolved="false"></xref> (normalized to UTC), and <xref href="System.String" data-throw-if-not-resolved="false"></xref> values.
  example: []
  syntax:
    content: public static object? ToObject(this BsonValue val)
    parameters:
    - id: val
      type: MongoDB.Bson.BsonValue
      description: The <xref href="MongoDB.Bson.BsonValue" data-throw-if-not-resolved="false"></xref> instance to convert to a CLR object.
    return:
      type: System.Object
      description: The underlying CLR value when <code class="paramref">val</code> is an Int32, Int64, Double, valid DateTime (in UTC), or String; otherwise <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.
    content.vb: Public Shared Function ToObject(val As BsonValue) As Object
  overload: adas_core.Domain.Utils.BsonUtils.ToObject*
- uid: adas_core.Domain.Utils.BsonUtils.Get(MongoDB.Bson.BsonDocument,System.String)
  commentId: M:adas_core.Domain.Utils.BsonUtils.Get(MongoDB.Bson.BsonDocument,System.String)
  id: Get(MongoDB.Bson.BsonDocument,System.String)
  isExtensionMethod: true
  parent: adas_core.Domain.Utils.BsonUtils
  langs:
  - csharp
  - vb
  name: Get(BsonDocument, string)
  nameWithType: BsonUtils.Get(BsonDocument, string)
  fullName: adas_core.Domain.Utils.BsonUtils.Get(MongoDB.Bson.BsonDocument, string)
  type: Method
  source:
    remote:
      path: adas-core.Domain/Utils/BsonUtils.cs
      branch: document/release/1.0.1
      repo: https://git.teralevel.io/adas/adas-core.git
    id: Get
    path: ../../adas-core.Domain/Utils/BsonUtils.cs
    startLine: 35
  assemblies:
  - adas-core.Domain
  namespace: adas_core.Domain.Utils
  summary: Gets the value associated with the specified key from the BSON document, returning <code>null</code> if the key is not found.
  example: []
  syntax:
    content: public static BsonValue? Get(this BsonDocument doc, string key)
    parameters:
    - id: doc
      type: MongoDB.Bson.BsonDocument
      description: The BSON document to search for the key.
    - id: key
      type: System.String
      description: The key of the value to retrieve.
    return:
      type: MongoDB.Bson.BsonValue
      description: The <xref href="MongoDB.Bson.BsonValue" data-throw-if-not-resolved="false"></xref> associated with <code class="paramref">key</code>, or <code>null</code> if the key does not exist.
    content.vb: Public Shared Function [Get](doc As BsonDocument, key As String) As BsonValue
  overload: adas_core.Domain.Utils.BsonUtils.Get*
  nameWithType.vb: BsonUtils.Get(BsonDocument, String)
  fullName.vb: adas_core.Domain.Utils.BsonUtils.Get(MongoDB.Bson.BsonDocument, String)
  name.vb: Get(BsonDocument, String)
references:
- uid: adas_core.Domain.Utils
  commentId: N:adas_core.Domain.Utils
  href: adas_core.html
  name: adas_core.Domain.Utils
  nameWithType: adas_core.Domain.Utils
  fullName: adas_core.Domain.Utils
  spec.csharp:
  - uid: adas_core
    name: adas_core
    href: adas_core.html
  - name: .
  - uid: adas_core.Domain
    name: Domain
    href: adas_core.Domain.html
  - name: .
  - uid: adas_core.Domain.Utils
    name: Utils
    href: adas_core.Domain.Utils.html
  spec.vb:
  - uid: adas_core
    name: adas_core
    href: adas_core.html
  - name: .
  - uid: adas_core.Domain
    name: Domain
    href: adas_core.Domain.html
  - name: .
  - uid: adas_core.Domain.Utils
    name: Utils
    href: adas_core.Domain.Utils.html
- uid: System.Object
  commentId: T:System.Object
  parent: System
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.object
  name: object
  nameWithType: object
  fullName: object
  nameWithType.vb: Object
  fullName.vb: Object
  name.vb: Object
- uid: System.Object.Equals(System.Object)
  commentId: M:System.Object.Equals(System.Object)
  parent: System.Object
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
  name: Equals(object)
  nameWithType: object.Equals(object)
  fullName: object.Equals(object)
  nameWithType.vb: Object.Equals(Object)
  fullName.vb: Object.Equals(Object)
  name.vb: Equals(Object)
  spec.csharp:
  - uid: System.Object.Equals(System.Object)
    name: Equals
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
  - name: (
  - uid: System.Object
    name: object
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object
  - name: )
  spec.vb:
  - uid: System.Object.Equals(System.Object)
    name: Equals
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
  - name: (
  - uid: System.Object
    name: Object
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object
  - name: )
- uid: System.Object.Equals(System.Object,System.Object)
  commentId: M:System.Object.Equals(System.Object,System.Object)
  parent: System.Object
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
  name: Equals(object, object)
  nameWithType: object.Equals(object, object)
  fullName: object.Equals(object, object)
  nameWithType.vb: Object.Equals(Object, Object)
  fullName.vb: Object.Equals(Object, Object)
  name.vb: Equals(Object, Object)
  spec.csharp:
  - uid: System.Object.Equals(System.Object,System.Object)
    name: Equals
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
  - name: (
  - uid: System.Object
    name: object
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object
  - name: ','
  - name: " "
  - uid: System.Object
    name: object
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object
  - name: )
  spec.vb:
  - uid: System.Object.Equals(System.Object,System.Object)
    name: Equals
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
  - name: (
  - uid: System.Object
    name: Object
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object
  - name: ','
  - name: " "
  - uid: System.Object
    name: Object
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object
  - name: )
- uid: System.Object.GetHashCode
  commentId: M:System.Object.GetHashCode
  parent: System.Object
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
  name: GetHashCode()
  nameWithType: object.GetHashCode()
  fullName: object.GetHashCode()
  nameWithType.vb: Object.GetHashCode()
  fullName.vb: Object.GetHashCode()
  spec.csharp:
  - uid: System.Object.GetHashCode
    name: GetHashCode
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
  - name: (
  - name: )
  spec.vb:
  - uid: System.Object.GetHashCode
    name: GetHashCode
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
  - name: (
  - name: )
- uid: System.Object.GetType
  commentId: M:System.Object.GetType
  parent: System.Object
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.object.gettype
  name: GetType()
  nameWithType: object.GetType()
  fullName: object.GetType()
  nameWithType.vb: Object.GetType()
  fullName.vb: Object.GetType()
  spec.csharp:
  - uid: System.Object.GetType
    name: GetType
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.gettype
  - name: (
  - name: )
  spec.vb:
  - uid: System.Object.GetType
    name: GetType
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.gettype
  - name: (
  - name: )
- uid: System.Object.MemberwiseClone
  commentId: M:System.Object.MemberwiseClone
  parent: System.Object
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
  name: MemberwiseClone()
  nameWithType: object.MemberwiseClone()
  fullName: object.MemberwiseClone()
  nameWithType.vb: Object.MemberwiseClone()
  fullName.vb: Object.MemberwiseClone()
  spec.csharp:
  - uid: System.Object.MemberwiseClone
    name: MemberwiseClone
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
  - name: (
  - name: )
  spec.vb:
  - uid: System.Object.MemberwiseClone
    name: MemberwiseClone
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
  - name: (
  - name: )
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
  commentId: M:System.Object.ReferenceEquals(System.Object,System.Object)
  parent: System.Object
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
  name: ReferenceEquals(object, object)
  nameWithType: object.ReferenceEquals(object, object)
  fullName: object.ReferenceEquals(object, object)
  nameWithType.vb: Object.ReferenceEquals(Object, Object)
  fullName.vb: Object.ReferenceEquals(Object, Object)
  name.vb: ReferenceEquals(Object, Object)
  spec.csharp:
  - uid: System.Object.ReferenceEquals(System.Object,System.Object)
    name: ReferenceEquals
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
  - name: (
  - uid: System.Object
    name: object
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object
  - name: ','
  - name: " "
  - uid: System.Object
    name: object
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object
  - name: )
  spec.vb:
  - uid: System.Object.ReferenceEquals(System.Object,System.Object)
    name: ReferenceEquals
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
  - name: (
  - uid: System.Object
    name: Object
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object
  - name: ','
  - name: " "
  - uid: System.Object
    name: Object
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object
  - name: )
- uid: System.Object.ToString
  commentId: M:System.Object.ToString
  parent: System.Object
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.object.tostring
  name: ToString()
  nameWithType: object.ToString()
  fullName: object.ToString()
  nameWithType.vb: Object.ToString()
  fullName.vb: Object.ToString()
  spec.csharp:
  - uid: System.Object.ToString
    name: ToString
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.tostring
  - name: (
  - name: )
  spec.vb:
  - uid: System.Object.ToString
    name: ToString
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.tostring
  - name: (
  - name: )
- uid: System
  commentId: N:System
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system
  name: System
  nameWithType: System
  fullName: System
- uid: MongoDB.Bson.BsonValue
  commentId: T:MongoDB.Bson.BsonValue
  parent: MongoDB.Bson
  isExternal: true
  name: BsonValue
  nameWithType: BsonValue
  fullName: MongoDB.Bson.BsonValue
- uid: System.Int32
  commentId: T:System.Int32
  parent: System
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.int32
  name: int
  nameWithType: int
  fullName: int
  nameWithType.vb: Integer
  fullName.vb: Integer
  name.vb: Integer
- uid: System.Int64
  commentId: T:System.Int64
  parent: System
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.int64
  name: long
  nameWithType: long
  fullName: long
  nameWithType.vb: Long
  fullName.vb: Long
  name.vb: Long
- uid: System.Double
  commentId: T:System.Double
  parent: System
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.double
  name: double
  nameWithType: double
  fullName: double
  nameWithType.vb: Double
  fullName.vb: Double
  name.vb: Double
- uid: System.DateTime
  commentId: T:System.DateTime
  parent: System
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.datetime
  name: DateTime
  nameWithType: DateTime
  fullName: System.DateTime
  nameWithType.vb: Date
  fullName.vb: Date
  name.vb: Date
- uid: System.String
  commentId: T:System.String
  parent: System
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.string
  name: string
  nameWithType: string
  fullName: string
  nameWithType.vb: String
  fullName.vb: String
  name.vb: String
- uid: adas_core.Domain.Utils.BsonUtils.ToObject*
  commentId: Overload:adas_core.Domain.Utils.BsonUtils.ToObject
  href: adas_core.Domain.Utils.BsonUtils.html#adas_core_Domain_Utils_BsonUtils_ToObject_MongoDB_Bson_BsonValue_
  name: ToObject
  nameWithType: BsonUtils.ToObject
  fullName: adas_core.Domain.Utils.BsonUtils.ToObject
- uid: MongoDB.Bson
  commentId: N:MongoDB.Bson
  isExternal: true
  name: MongoDB.Bson
  nameWithType: MongoDB.Bson
  fullName: MongoDB.Bson
  spec.csharp:
  - uid: MongoDB
    name: MongoDB
    isExternal: true
  - name: .
  - uid: MongoDB.Bson
    name: Bson
    isExternal: true
  spec.vb:
  - uid: MongoDB
    name: MongoDB
    isExternal: true
  - name: .
  - uid: MongoDB.Bson
    name: Bson
    isExternal: true
- uid: adas_core.Domain.Utils.BsonUtils.Get*
  commentId: Overload:adas_core.Domain.Utils.BsonUtils.Get
  href: adas_core.Domain.Utils.BsonUtils.html#adas_core_Domain_Utils_BsonUtils_Get_MongoDB_Bson_BsonDocument_System_String_
  name: Get
  nameWithType: BsonUtils.Get
  fullName: adas_core.Domain.Utils.BsonUtils.Get
- uid: MongoDB.Bson.BsonDocument
  commentId: T:MongoDB.Bson.BsonDocument
  parent: MongoDB.Bson
  isExternal: true
  name: BsonDocument
  nameWithType: BsonDocument
  fullName: MongoDB.Bson.BsonDocument
