I have a file with defined enums. Inside my project, I have a page in which I'd like to use these enums. Where exactly should I save enums file and how is it possible to use it? I tried using statement, but it seems that project doesn't know where is the file located.
Example of Enums.cs
namespace Enums
{
//
[Flags]
public enum TTDETAILS : long
{
....
Place this class file in the App_Code folder at your site root. If not present, add this folder your self. This is a special folder in ASP.NET system, which contains stand-alone classes, enums, structures etc.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.