projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix build_init vcxproj to correctly detect changes in config.h.
[mono.git]
/
mcs
/
class
/
System.IO.Compression
/
SharpCompress
/
EnumExtensions.cs
1
using System;
2
3
namespace SharpCompress
4
{
5
internal static class EnumExtensions
6
{
7
public static bool HasFlag(this Enum enumRef, Enum flag)
8
{
9
long value = Convert.ToInt64(enumRef);
10
long flagVal = Convert.ToInt64(flag);
11
12
return (value & flagVal) == flagVal;
13
}
14
}
15
}