### YamlMime:ManagedReference items: - uid: adas_core.Domain.Utils.Mapper`1 commentId: T:adas_core.Domain.Utils.Mapper`1 id: Mapper`1 parent: adas_core.Domain.Utils children: - adas_core.Domain.Utils.Mapper`1.Map(System.Dynamic.ExpandoObject,`0) langs: - csharp - vb name: Mapper nameWithType: Mapper fullName: adas_core.Domain.Utils.Mapper type: Class source: remote: path: adas-core.Domain/Utils/Mapper.cs branch: document/release/1.0.1 repo: https://git.teralevel.io/adas/adas-core.git id: Mapper path: ../../adas-core.Domain/Utils/Mapper.cs startLine: 5 assemblies: - adas-core.Domain namespace: adas_core.Domain.Utils syntax: content: 'public static class Mapper where T : class' typeParameters: - id: T content.vb: Public Module Mapper(Of T As Module) 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 nameWithType.vb: Mapper(Of T) fullName.vb: adas_core.Domain.Utils.Mapper(Of T) name.vb: Mapper(Of T) - uid: adas_core.Domain.Utils.Mapper`1.Map(System.Dynamic.ExpandoObject,`0) commentId: M:adas_core.Domain.Utils.Mapper`1.Map(System.Dynamic.ExpandoObject,`0) id: Map(System.Dynamic.ExpandoObject,`0) parent: adas_core.Domain.Utils.Mapper`1 langs: - csharp - vb name: Map(ExpandoObject, T) nameWithType: Mapper.Map(ExpandoObject, T) fullName: adas_core.Domain.Utils.Mapper.Map(System.Dynamic.ExpandoObject, T) type: Method source: remote: path: adas-core.Domain/Utils/Mapper.cs branch: document/release/1.0.1 repo: https://git.teralevel.io/adas/adas-core.git id: Map path: ../../adas-core.Domain/Utils/Mapper.cs startLine: 33 assemblies: - adas-core.Domain namespace: adas_core.Domain.Utils summary: >- Maps properties from an source to a strongly-typed destination object using a pre-defined property map. Property lookups are case-insensitive. Null values are only assigned to reference types or types; assigning null to a non-nullable value type throws. When a source value's type does not match the destination property's type, the value is converted using . example: [] syntax: content: public static void Map(ExpandoObject source, T destination) parameters: - id: source type: System.Dynamic.ExpandoObject description: The source whose key-value pairs will be mapped onto the destination. - id: destination type: '{T}' description: The target object that will receive the mapped property values. content.vb: Public Shared Sub Map(source As ExpandoObject, destination As T) overload: adas_core.Domain.Utils.Mapper`1.Map* exceptions: - type: System.ArgumentNullException commentId: T:System.ArgumentNullException description: Thrown when source or destination is null. - type: System.ArgumentException commentId: T:System.ArgumentException description: Thrown when a source value is null but the corresponding destination property is a value type that is not . nameWithType.vb: Mapper(Of T).Map(ExpandoObject, T) fullName.vb: adas_core.Domain.Utils.Mapper(Of T).Map(System.Dynamic.ExpandoObject, T) 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: System.Dynamic.ExpandoObject commentId: T:System.Dynamic.ExpandoObject parent: System.Dynamic isExternal: true href: https://learn.microsoft.com/dotnet/api/system.dynamic.expandoobject name: ExpandoObject nameWithType: ExpandoObject fullName: System.Dynamic.ExpandoObject - uid: System.Nullable`1 commentId: T:System.Nullable`1 isExternal: true href: https://learn.microsoft.com/dotnet/api/system.nullable-1 name: Nullable nameWithType: Nullable fullName: System.Nullable nameWithType.vb: Nullable(Of T) fullName.vb: System.Nullable(Of T) name.vb: Nullable(Of T) spec.csharp: - uid: System.Nullable`1 name: Nullable isExternal: true href: https://learn.microsoft.com/dotnet/api/system.nullable-1 - name: < - name: T - name: '>' spec.vb: - uid: System.Nullable`1 name: Nullable isExternal: true href: https://learn.microsoft.com/dotnet/api/system.nullable-1 - name: ( - name: Of - name: " " - name: T - name: ) - uid: System.Convert.ToDouble(System.Object) commentId: M:System.Convert.ToDouble(System.Object) isExternal: true href: https://learn.microsoft.com/dotnet/api/system.convert.todouble#system-convert-todouble(system-object) name: ToDouble(object) nameWithType: Convert.ToDouble(object) fullName: System.Convert.ToDouble(object) nameWithType.vb: Convert.ToDouble(Object) fullName.vb: System.Convert.ToDouble(Object) name.vb: ToDouble(Object) spec.csharp: - uid: System.Convert.ToDouble(System.Object) name: ToDouble isExternal: true href: https://learn.microsoft.com/dotnet/api/system.convert.todouble#system-convert-todouble(system-object) - name: ( - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) spec.vb: - uid: System.Convert.ToDouble(System.Object) name: ToDouble isExternal: true href: https://learn.microsoft.com/dotnet/api/system.convert.todouble#system-convert-todouble(system-object) - name: ( - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) - uid: System.ArgumentNullException commentId: T:System.ArgumentNullException isExternal: true href: https://learn.microsoft.com/dotnet/api/system.argumentnullexception name: ArgumentNullException nameWithType: ArgumentNullException fullName: System.ArgumentNullException - uid: System.ArgumentException commentId: T:System.ArgumentException isExternal: true href: https://learn.microsoft.com/dotnet/api/system.argumentexception name: ArgumentException nameWithType: ArgumentException fullName: System.ArgumentException - uid: adas_core.Domain.Utils.Mapper`1.Map* commentId: Overload:adas_core.Domain.Utils.Mapper`1.Map href: adas_core.Domain.Utils.Mapper-1.html#adas_core_Domain_Utils_Mapper_1_Map_System_Dynamic_ExpandoObject__0_ name: Map nameWithType: Mapper.Map fullName: adas_core.Domain.Utils.Mapper.Map nameWithType.vb: Mapper(Of T).Map fullName.vb: adas_core.Domain.Utils.Mapper(Of T).Map - uid: '{T}' commentId: '!:T' definition: T name: T nameWithType: T fullName: T - uid: System.Dynamic commentId: N:System.Dynamic isExternal: true href: https://learn.microsoft.com/dotnet/api/system name: System.Dynamic nameWithType: System.Dynamic fullName: System.Dynamic spec.csharp: - uid: System name: System isExternal: true href: https://learn.microsoft.com/dotnet/api/system - name: . - uid: System.Dynamic name: Dynamic isExternal: true href: https://learn.microsoft.com/dotnet/api/system.dynamic spec.vb: - uid: System name: System isExternal: true href: https://learn.microsoft.com/dotnet/api/system - name: . - uid: System.Dynamic name: Dynamic isExternal: true href: https://learn.microsoft.com/dotnet/api/system.dynamic - uid: T name: T nameWithType: T fullName: T