mercredi 18 novembre 2015

c# check if a class has defined enum

I have a class like this

public class SomeClass {
public enum Status { A,B,C}
}

I want to do

bool enumExists = MysteryMethod("SomeClass.Status");

What goes inside MysteryMethod ?





Aucun commentaire:

Enregistrer un commentaire