[성현모] CPXV2 Init

This commit is contained in:
SHM
2024-06-26 10:30:00 +09:00
parent cdf12248c5
commit 5958993b6a
588 changed files with 698420 additions and 0 deletions

View File

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace SystemX.Net.Platform.Common.Util
{
public class CwdChanger : IDisposable
{
protected string m_strBackupDirectory = null;
public CwdChanger() : this(null) { }
public CwdChanger(string strTargetDirectory/*=null*/)
{
m_strBackupDirectory = Directory.GetCurrentDirectory();
if (!String.IsNullOrEmpty(strTargetDirectory))
Directory.SetCurrentDirectory(strTargetDirectory);
}
public void Dispose()
{
Directory.SetCurrentDirectory(m_strBackupDirectory);
}
}
}