This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using Hangfire.Common; | |
| using Hangfire.States; | |
| using Hangfire.Storage; | |
| namespace Hangfire.Pro | |
| { | |
| /// <summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class MyType : Enumeration | |
| { | |
| //don't allow type to be constructed | |
| private MyType(int value, string displayName) : base(value, displayName) { } | |
| public static readonly MyType Type1 = new MyType(1, "Type One"); | |
| public static readonly MyType Type2 = new MyType(2, "Type Two"); | |
| public static readonly MyType DerivedType3 = new DerivedMyType(3, "Type Three"); | |
| public virtual int GetSomethingAboutThisType() |