Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Enum Extension
//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 class Program { public static void Main(string[] args) { //Your code goes here Console.WriteLine("Hello, world!"); var status = Status.Active; var isActive = status.IsSubsetOf(Status.Active, Status.Hold); Console.Write(isActive); } } public static class EnumExtensions { public static bool IsSubsetOf(this Enum value, params Enum[] values) { return values.Contains(value); } } public enum Status { Active, Hold, Inactive, Cancel, Complete } }
run
|
edit
|
history
|
help
0
SortedDictionary : Add と foreach
equation with a variable on the 2nd power
ds
Оператор switch
Planet-D ver. 0.7
Linq Func Action
Test02
Project Euler Problem 10
IsDivisibleV2
SimpleHelloworldProgram