I am looking for appropriate Data Structure or Data type for checking if the value assigned to the variable is modified or not.
For example,
int x = 0;
.
.
.
x = 2;
.
.
.
x = 0;
.
.
.
if (x = modified?)
Here, I do not want to store the variable as global or something. I want to check if its modified or not. I have tried to glean through resources, but I am unable to find anything. Any suggestion or direction will greatly help. I am looking for data type/data structure that is compatible with Microsoft C#.
