combit List & Label 29 - .NET Help
combit.Reporting Namespace / ExtensionMethods Class / AddIfNotContained<T> Method


In This Topic
    AddIfNotContained<T> Method
    In This Topic
    Syntax
    'Declaration
     
    
    Public Shared Sub AddIfNotContained(Of T)( _
       ByVal list As List(Of T), _
       ByVal element As T _
    ) 
    public static void AddIfNotContained<T>( 
       List<T> list,
       T element
    )
    public:
    static void AddIfNotContainedgeneric<typename T>
    ( 
       List<T^>^ list,
       T^ element
    ) 

    Parameters

    list
    element

    Type Parameters

    T
    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also