I want to clearly discuss my problem.
I have a function to change the value of two variables
public static void Swap<T>(ref T first, ref T second)
{
T temp = first;
first = second;
second = temp;
}
I use it in my code like this:
Swap<DateTime>(ref TarikhePayaneGozaresh, ref TarikheShorooeGhozaresh);
I checked it many times and now I'm confused. As you can see, the value has not changed!
Update . I wrote more of my code.
Saleh source
share