W poniższych wierszach:
//Folder.Attributes = FileAttributes.Directory | FileAttributes.Hidden | FileAttributes.System | FileAttributes.ReadOnly;
Folder.Attributes |= FileAttributes.Directory | FileAttributes.Hidden | FileAttributes.System | FileAttributes.ReadOnly;
Folder.Attributes |= ~FileAttributes.System;
Folder.Attributes &= ~FileAttributes.System;
Co oznacza |=(pojedyncza rura równa) i &=(pojedynczy znak ampersand równa) w języku C #
Chcę usunąć atrybut systemowy, zachowując pozostałe ...
x = x | (y);jest lepszym sposobem opisania tego, ponieważx |= y + z;nie jest tym samym, cox = x | y + z;