17 lines
395 B
C#
17 lines
395 B
C#
|
|
namespace Sep.Git.Tfs.Core.TfsInterop
|
|
{
|
|
public static class TfsExt
|
|
{
|
|
public static bool IncludesOneOf(this TfsChangeType changeType, params TfsChangeType[] typesToMatch)
|
|
{
|
|
foreach (var ok in typesToMatch)
|
|
{
|
|
if ((ok & changeType) == ok)
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
}
|