Im newer to C# and can't seem to find a direct answer to this:
So in a method I create an object reference to read an xml doc:
XElement xFinancialBill = xDoc.Root.Element("Financial_Transaction").Element("Bill");
It does some processing with the object and the method ends, but my question is: do I need to null out the above object reference (eg. xFinancialBill = null;
) before the method ends for garbage collection/freeing up memory to work correctly?