FlexRule Runtime API
FlexRule Runtime API
FlexRule Namespaces
FlexRule
LinqExtensions Class
LinqExtensions Methods
DistinctBy(TSource, TKey) Method
TakeLast(T) Method
LinqExtensions
TakeLast
T
Method
Takes n last numbers of a source
Namespace:
FlexRule
Assembly:
FlexRule.Core.Library (in FlexRule.Core.Library.dll) Version: 0.0.0.0 (0.0.0.0)
Syntax
C#
Copy
public
static
IEnumerable
<T>
TakeLast
<T>(
this
IEnumerable
<T>
source
,
int
n
)
Parameters
source
Type:
System.Collections.Generic
IEnumerable
T
n
Type:
System
Int32
Type Parameters
T
Return Value
Type:
IEnumerable
T
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerable
T
. 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
Reference
LinqExtensions Class
FlexRule Namespace
(c) 2017 by FlexRule
Send comments on this topic to
support@flexrule.com