티스토리 뷰
Series
Detect Windows Architecture [C#] Directory.Exists (Not Good Solution)
More Code 2018. 6. 25. 04:12// C# : Not Good Solution
using System;
using System.IO;
namespace Sharp1
{
class Program
{
static void Main(string[] args)
{
string myArchitecture = Directory.Exists(@"C:\Program Files (x86)") ? "AMD64" : "x86";
Console.WriteLine(myArchitecture);
}
}
}
'Series' 카테고리의 다른 글
Detect Windows Architecture [C++] std::getenv (0) | 2018.06.25 |
---|---|
Detect Windows Architecture [C#] Environment.GetEnvironmentVariable (0) | 2018.06.25 |
Argument Parameter [Python] Keyword Arguments (0) | 2018.06.24 |
Argument Parameter [C#] Named Arguments (0) | 2018.06.24 |
Argument Parameter [Python] Default Argument Values (0) | 2018.06.24 |