"Edgardo Rossetto" <no@gracias.com> wrote in message
news:uw**************@TK2MSFTNGP14.phx.gbl...
Quoting from MSDN docu:
"This enumeration has a FlagsAttribute attribute that allows a bitwise
combination of its member values"
I don't get it, how can I check if FileSystemInfo.Attribute has the Hidden
and System attribute, or maybe only one of those?
Its obnoxiously designed really, although logical. You have to use the
bitwise and operator(&) and a comparison
if ((fsi.Attribute & FileAttributes.Hidden) != 0)
{
//FileAttributes.Hidden is set
}
and so on.