Can I create a method that changes the value of an object monthly in C#?

时间:2015-05-24 20:26:32

标签: c#

I was wondering if I can write a program that resets fileds on a monthly basis or to move the value from one field to another and to set the first one to zero (Both of the parameters are int).

(Second_field=first_field;

first_field=0;)

Unfortunately, I didn't find any help on the web and will be thankful for any help you can give me.

1 个答案:

答案 0 :(得分:-1)

If i understand your question, one way to do it is to add a date linked to that field and a function running however you prefer checking for outdated fields and removing them.