In den folgenden Zeilen:
//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;
Was bedeutet |=(Single Pipe Equal) und &=(Single Ampersand Equal) in C # ?
Ich möchte Systemattribute entfernen, indem ich die anderen behalte ...
x = x | (y);ist eine bessere Art, es zu beschreiben, weilx |= y + z;es nicht dasselbe ist wiex = x | y + z;