Click or drag to resize

ExtensionMethodsLatestVersionOnlyT Method

Gets the latest version of the versioned entity data instance from a given list.

Namespace:  SanteDB.Core.Model
Assembly:  SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 2.2.1
Syntax
public static IEnumerable<T> LatestVersionOnly<T>(
	this IEnumerable<T> source
)
where T : IVersionedEntity

Parameters

source
Type: System.Collections.GenericIEnumerableT
The source.

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:SanteDB.Core.Model.ExtensionMethods.LatestVersionOnly``1(System.Collections.Generic.IEnumerable{``0})"]

Return Value

Type: IEnumerableT
Returns the latest version only of the versioned entity data.

Usage Note

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