Hallo Ich versuche, wie so eine statische Enum declar:Probleme statische Enum erklärt, C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Lds.CM.MyApp.Controllers
{
public class MenuBarsController : Controller
{
// Menu Bar enums
public static enum ProfileMenuBarTab { MainProfile, Edit, photoGallery }
public ActionResult cpTopMenuBar(string tabSelected)
{
...
„ Aber ich die folgende Fehlermeldung erhalten:“ Der Modifikator ‚statisch‘ ist nicht gültig für ..! this item“ ich weiß, es ist etwas einfach, aber ich kann das Problem nicht zu sehen scheint Vielen dank
Genau das gleiche gilt für [Teilnehmer] (http://stackoverflow.com/questions/6835766/why -can-a-net-delegate-nicht-deklariert-statisch) und [structs] (http://stackoverflow.com/questions/2613376/why-cant-you-declare-a-static-struct-in- c-aber-sie-können-statische-Methoden) – nawfal