Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[C#] Flag Enumeration nimmt nicht alle States an

Empfohlene Antworten

Veröffentlicht

Hi leute,

ich kämpfe momentan mit einem mir noch nicht verständlichen Fehler.

Ich habe eine Enumeration die mit dem Flag Attribut gekennzeichnet wurde.

Das sieht wie folgt aus:


    [Flags]

    public enum Permission { 

        Read = 0x01, 

        Write = 0x02,

        Create = 0x03, 

        Delete = 0x04 };

Nun habe ich ein objekt vom typ user und setzte diesem objekt dessen Rechte. Das sieht so aus:

user.IOPermission = Core.Security.Permission.Read | Core.Security.Permission.Write | Core.Security.Permission.Create;

Wenn ich nach dieser Zuweisung einen Breakpoint platziere um mir den inhalt der Property IOPermission anzusehn, zeigt mir der Debugger an das nur die Flags Read und Write gesetzt wurden.

Weiß jemand warum das so ist?

lg

Gateway

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.