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


combit.ListLabel24 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 Vista - Windows 10 Version 1809, Windows Server 2008 - 2016

See Also

Reference

ExtensionMethods Class
ExtensionMethods Members