best practice for breaking references in C# -
i wondering how can break reference instance if can't put null (because program won't work), can't use dispose: (if object!=null) {object.dispose();}
, , don't know , how reinitialize object (it should reinit variables also).
also, can find .net memory profiler issue advisor tells how resolve found issues might indicate memory leaks?
e.g. :
direct eventhandler roots (show details) (ignore...) disposed instances (show details) (ignore...) pinned instances (show details) (ignore...) undisposed instances (remove external references) (show details) (ignore...) large instances (show details) (ignore...) duplicate instances (show details) (ignore...) direct delegate roots (show details) (ignore...)
and on