ArgumentUtility.CheckCollectionForNullOrEmpty<T> Method (ICollection<T>, String)
Namespace: Microsoft.VisualStudio.Services.Common
Assembly: Microsoft.VisualStudio.Services.Common (in Microsoft.VisualStudio.Services.Common.dll)
Syntax
'Declaration
Public Shared Sub CheckCollectionForNullOrEmpty(Of T) ( _
collection As ICollection(Of T), _
collectionName As String _
)
public static void CheckCollectionForNullOrEmpty<T>(
ICollection<T> collection,
string collectionName
)
public:
generic<typename T>
static void CheckCollectionForNullOrEmpty(
ICollection<T>^ collection,
String^ collectionName
)
static member CheckCollectionForNullOrEmpty :
collection:ICollection<'T> *
collectionName:string -> unit
JScript does not support generic types or methods.
Type Parameters
- T
Parameters
- collection
Type: System.Collections.Generic.ICollection<T>
- collectionName
Type: System.String
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.