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
ashok
FINAL PRIME NUMBER GENERATOR IN C#
BreakNum2
gd
StopJoin.cs
array with c#
IntNull
Hack
How to find the fisrt index of a substring in a given string?
Found many section of times intersect (can edit)