In my version of the framework, this seems to work:
string fullPath = ((FileStream)(streamWriter.BaseStream)).Name;
(Found by debugging.)
In my version of the framework, this seems to work:
string fullPath = ((FileStream)(streamWriter.BaseStream)).Name;
(Found by debugging.)
转载于:https://www.cnblogs.com/chucklu/p/11340050.html