Nevron Open Vision Documentation
Nevron.Nov.DataStructures Namespace / NList<T> Class / TryGetLast Method


In This Topic
    TryGetLast Method
    In This Topic
    Tries to get the last item that passes the specified filter. If filter is null the last item in the list is returned.
    Syntax
    'Declaration
     
    
    Public Function TryGetLast( _
       ByVal filter As INFilter(Of T), _
       ByRef item As T _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As NList(Of T)
    Dim filter As INFilter(Of T)
    Dim item As T
    Dim value As System.Boolean
     
    value = instance.TryGetLast(filter, item)
    public System.bool TryGetLast( 
       INFilter<T> filter,
       out T item
    )

    Parameters

    filter
    item
    Requirements

    Target Platforms: Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also