C# The 'new' keyword on existing objects
问题 I was wondering as to what happens to an object (in C#), once its reference becomes reassigned. Example: Car c = new Car("Red Car"); c = new Car("Blue Car"); Since the reference was reused, does the garbage collector dispose / handle the 'Red Car' after it's lost its reference? Or does a separate method need to be implemented to dispose of the 'red car'? I'm primarily wondering because there's a relatively large object that I'm going to recycle, and need to know if there is anything that