打鐵人的雜記
work & life
2020年6月14日 星期日
去除陣列重複值
Private string[] DistinctArray(string[] Array)
{
ArrayList DistinctArray = new ArrayList();
foreach (string i in Array)
{
if (!DistinctArray.Contains(i))
{
DistinctArray.Add(i);
}
}
return (string[])DistinctArray.ToArray(typeof(string));
}
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
OUTLOOK 無法加密連線 POP3S SMTPS
最近郵件主機加上了憑證,公司一堆老舊電腦卻無法連線, 原先以為是主機設定的問題搞了很久, 最終還是要谷歌大師出馬, 參考這篇 文章 就解決了
Windows Server 中設定授權時間伺服器
https://support.microsoft.com/zh-tw/help/816042/how-to-configure-an-authoritative-time-server-in-windows-server 懶人法:下載這個檔案 http://go.mic...
Windows 網域控制站診斷工具
dcdiag.exe /s:<Directory Server>[:<LDAP Port>] [/u:<Domain>\<Username> /p:*|<Password>|""] ...
沒有留言:
張貼留言