Class ItemExtensions
Extension methods for IEnumerable of IItem of T
Inheritance
Inherited Members
Namespace: ImageVault.Common.Data
Assembly: ImageVault.Common.dll
Syntax
public static class ItemExtensions
Methods
Contains(IEnumerable<IItem<Int32>>, Int32)
Returns a value indicating whether the specified System.Collections.Generic.IEnumerable<T> is contained in the ItemExtensions.
Declaration
public static bool Contains(this IEnumerable<IItem<int>> items, int id)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IItem<System.Int32>> | items | The System.Collections.Generic.IEnumerable<T> to locate in the ItemExtensions. |
System.Int32 | id |
Returns
Type | Description |
---|---|
System.Boolean | true if the IEnumerable<Category> parameter is a member of the ItemExtensions; otherwise, false. |
ContainsAll(IEnumerable<IItem<Int32>>, IEnumerable<Int32>)
Returns a value indicating whether all of the specified System.Collections.Generic.IEnumerable<T> is contained in the ItemExtensions.
Declaration
public static bool ContainsAll(this IEnumerable<IItem<int>> items, IEnumerable<int> ids)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IItem<System.Int32>> | items | The System.Collections.Generic.IEnumerable<T> to locate in the ItemExtensions. |
System.Collections.Generic.IEnumerable<System.Int32> | ids |
Returns
Type | Description |
---|---|
System.Boolean | true if the IEnumerable<Category> parameter is a member of the ItemExtensions; otherwise, false. |
ContainsAll(IEnumerable<IItem<Int32>>, Int32[])
Returns a value indicating whether all of the specified System.Collections.Generic.IEnumerable<T> is contained in the ItemExtensions.
Declaration
public static bool ContainsAll(this IEnumerable<IItem<int>> items, params int[] ids)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IItem<System.Int32>> | items | The System.Collections.Generic.IEnumerable<T> to locate in the ItemExtensions. |
System.Int32[] | ids |
Returns
Type | Description |
---|---|
System.Boolean | true if the IEnumerable<Category> parameter is a member of the ItemExtensions; otherwise, false. |
ContainsAny(IEnumerable<IItem<Int32>>, IEnumerable<Int32>)
Returns a value indicating whether any of the specified System.Collections.Generic.IEnumerable<T> is contained in the ItemExtensions.
Declaration
public static bool ContainsAny(this IEnumerable<IItem<int>> items, IEnumerable<int> ids)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IItem<System.Int32>> | items | The System.Collections.Generic.IEnumerable<T> to locate in the ItemExtensions. |
System.Collections.Generic.IEnumerable<System.Int32> | ids |
Returns
Type | Description |
---|---|
System.Boolean | true if the IEnumerable<Category> parameter is a member of the ItemExtensions; otherwise, false. |
ContainsAny(IEnumerable<IItem<Int32>>, Int32[])
Returns a value indicating whether any of the specified System.Collections.Generic.IEnumerable<T> is contained in the ItemExtensions.
Declaration
public static bool ContainsAny(this IEnumerable<IItem<int>> items, params int[] ids)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IItem<System.Int32>> | items | The System.Collections.Generic.IEnumerable<T> to locate in the ItemExtensions. |
System.Int32[] | ids |
Returns
Type | Description |
---|---|
System.Boolean | true if the IEnumerable<Category> parameter is a member of the ItemExtensions; otherwise, false. |