ModelDataExtensionsGetObjectTSource, TTarget(TSource) Method

Creates a object of the target type and maps all properties using default mapping rule - mapping by name.

Namespace: Dundas.BI.WebApi.Models
Assembly: Dundas.BI.WebApiCore (in Dundas.BI.WebApiCore.dll) Version: 2.0.0.0 (26.2.0.1000)
Syntax
public static TTarget GetObject<TSource, TTarget>(
	this TSource source
)
where TTarget : new()

Parameters

source  TSource
The source object - object which properties will be copied over the target.

Type Parameters

TSource
The type of the source.
TTarget
The type of the target.

Return Value

TTarget
Newly created and initialized object of the target type.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also