1
Answer

Dispose a variable

Marc

Marc

10y
720
1
Wondering how I can dispose of a variable.  If this is my code...
 
string myCode = GetMyCode();
 
myCode.Dispose(); // this is what I am trying to do
 
What is the best way of disposing this variable because I don't want it to stay in memory because of its sensitivity. 
 
Answers (1)