Click or drag to resize

ExtensionMethodsConvertTReturn Method

The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.

Namespace:  SanteDB
Assembly:  SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.481-alpha
Syntax
public static TReturn Convert<TReturn>(
	this Object me
)
where TReturn : new()

Parameters

me
Type: SystemObject

[Missing <param name="me"/> documentation for "M:SanteDB.ExtensionMethods.Convert``1(System.Object)"]

Type Parameters

TReturn

[Missing <typeparam name="TReturn"/> documentation for "M:SanteDB.ExtensionMethods.Convert``1(System.Object)"]

Return Value

Type: TReturn

[Missing <returns> documentation for "M:SanteDB.ExtensionMethods.Convert``1(System.Object)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Object. 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