Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Define an enum within a method
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Define an enum within a method
Divers
Thread ID:
01072501
Message ID:
01072501
Vues:
58
Can I define an enum within a method? (I don't think I can and I am not really sure I want to but I am still wondering)

Something like this:
private void myMethod()
{
  enum myEnum : byte
  {
    Zero = 0x00,
    One = 0x01
  }

  // Method code that is using the enum
}
Semper ubi sub ubi.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform