Click or drag to resize

ExtensionMethodsTryResolveClassConceptToType Method

Resolves me to the appropriate RIM type based on its class key

Namespace: SanteDB
Assembly: SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.2081-alpha+0a330d5f5a5d3cb3e6e945ef530e94ac5671b49c
Syntax
public static bool TryResolveClassConceptToType(
	this IHasClassConcept me,
	out Type mappedType
)

Parameters

me  IHasClassConcept
The class concept object to be resolved
mappedType  Type
The mapped type

Return Value

Boolean
True if the type was mapped succesfully from class concept

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IHasClassConcept. 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).
Remarks
This method can be used when a method is passed, for example, a generic Entity instance which claims to be a Patient to discover the declared type
See Also