20 lines
463 B
C#
20 lines
463 B
C#
|
|
using System.Collections.Generic;
|
|||
|
|
|
|||
|
|
namespace BS.Shared.Extensions
|
|||
|
|
{
|
|||
|
|
public static class IListStringExtensions
|
|||
|
|
{
|
|||
|
|
public static bool ContainsNullOrEmpty(this IList<string> pList)
|
|||
|
|
{
|
|||
|
|
foreach (string iString in pList)
|
|||
|
|
{
|
|||
|
|
if (string.IsNullOrEmpty(iString))
|
|||
|
|
{
|
|||
|
|
return true;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return false;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|