| 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
<ExtensionAttribute>
Public Shared Function LatestVersionOnly(Of T As IVersionedEntity) (
source As IEnumerable(Of T)
) As IEnumerable(Of T)
public:
[ExtensionAttribute]
generic<typename T>
where T : IVersionedEntity
static IEnumerable<T>^ LatestVersionOnly(
IEnumerable<T>^ source
)
[<ExtensionAttribute>]
static member LatestVersionOnly :
source : IEnumerable<'T> -> IEnumerable<'T> when '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:
IEnumerableTReturns 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