combit List & Label 25 - .NET Online Web Help
AddIfNotContained<T> Method


combit.ListLabel25 Namespace > ExtensionMethods Class : AddIfNotContained<T> Method
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 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

ExtensionMethods Class
ExtensionMethods Members