Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Enum.IsDefined
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public enum MyEnum { A = 1, C = 3, } public class Program { public static void Main(string[] args) { for(int i = 0; i < 5; i++) { Console.WriteLine(i); Console.WriteLine((MyEnum)i); Console.WriteLine(Enum.IsDefined(typeof(MyEnum), i)); } } } }
run
|
edit
|
history
|
help
0
Calculadora
Конструктор класса
a6
Fórum ➡ GroupJoin'ing Books and Orders ♦
All
Tarkov Time
num 1
Ref
c
pattern