0
如何将#define试用版更改为#define PREMIUM,例如当用户输入某个注册码时。如何更改#define
谢谢。
//#define TRIAL
#define PREMIUM
using System;
using System.Diagnostics;
using System.Reflection;
namespace Attributes
{
[Obsolete("This is an old class. Use new class instead!")]
class Test
{
[Conditional("TRIAL")]
void Trial()
{
Console.WriteLine("Trial");
}
[Conditional("PREMIUM")]
void Release()
{
Console.WriteLine("PREMIUM");
}
......................................