C# put date into program when compiled

前端 未结 7 1499
感情败类
感情败类 2021-01-12 23:49

I was thinking about how to create a program that would only be valid for X period of time, (within a C# app).

What I was thinking was that you would have the curren

7条回答
  •  不要未来只要你来
    2021-01-13 00:31

    I know this is a 3 year old question, but just to add my 2 cents. We use a "DateLimit" hard coded in a structure as suggested by James Curran.

    But we also use that same "Date" as a simple key to "crypt" and "Decrypt" (more Code and decode) all strings, labels, messages. If some people (We call them Cheaters) want to change the expiration date, They will have to go thru the whole assembly to reenter all those string correctly for the new expiration date. It's not perfect, but the cost to us is now near zero and the cost for the Cheaters is high.

提交回复
热议问题