You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
483 B
C#
26 lines
483 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace TopshelfStudy.NetCoreDemo
|
|
{
|
|
public static class RuntimeUtil
|
|
{
|
|
/// <summary>
|
|
/// 是否运行在Debug模式
|
|
/// </summary>
|
|
public static bool IsDebug
|
|
{
|
|
get
|
|
{
|
|
#pragma warning disable
|
|
#if DEBUG
|
|
return true;
|
|
#endif
|
|
return false;
|
|
#pragma warning restore
|
|
}
|
|
}
|
|
}
|
|
}
|