C#
enum TestEnum
{
Type1,
Type2,
}
class Program
{
static void Main(string[] args)
{
var e = new TestEnum();
string[] EnumStr= System.Enum.GetNames(e.GetType());
}
}
unity
void Start()
{
string[] EnumStr= Enum.GetNames(e.GetType());
}

博客提及了C#和Unity,C#是一种广泛应用的编程语言,Unity则是知名的游戏开发引擎,二者在软件开发尤其是游戏开发领域常结合使用。
1230

被折叠的 条评论
为什么被折叠?



