KO CSharp Directive Warning - LIHACHTETAN/ClassicUO-Bad-Newbie-CSharp-Scripts-IDE GitHub Wiki
ะฃะบัะฐัะฝััะบะฐ ยท ะ ัััะบะธะน ยท English ยท Deutsch ยท Franรงais ยท Italiano ยท Espaรฑol ยท ็น้ซไธญๆ ยท ๆฅๆฌ่ช ยท ํ๊ตญ์ด
์ปดํ์ผ๋ฌ ๋ฉ์์ง
ํธ๋๋ถ C# ยท ์ค์ฉ ๊ฐ์ด๋
์ ์๊ถ ๊ฒฝ๊ณ ๋ฅผ ์ถ๊ฐํฉ๋๋ค. ๊ฒฝ๊ณ ๊ฐ ์ค๋ฅ๋ก ํด์๋์ง ์๋ ๊ฒฝ์ฐ ๊ฒฝ๊ณ ์์ฒด๋ ์ปดํ์ผ์ ์ค์งํ์ง ์์ต๋๋ค.
๊ฐ๋จํ ์์ (Example.cs)
์ด ์์ ๋ฅผ Example.cs๋ก ๋ฐ๋ก ์ ์ฅํ๊ณ ์ด ํ์ด์ง์ ๋ค๋ฅธ ์์ ์ ๋
๋ฆฝ์ ์ผ๋ก ์คํํ์ธ์.
Example.cs:
// PROJECT-EXAMPLE
#warning Review this example
System.Console.WriteLine("Ready");
๊ฒฐ๊ณผ:
Ready
ํต์ฌ๋ก
#warning message
์์ 1
#warning Review the sample configuration
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.IO;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
public static class Program
{
public static async Task Main(string[] args)
{
Console.WriteLine("Ready");
}
}
์์ 2
#define SAMPLE
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.IO;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
public static class Program
{
public static async Task Main(string[] args)
{
#if SAMPLE
#warning Sample mode is active
#endif
Console.WriteLine("Mode selected");
}
}
๊ณต์ ์ถ์ฒ: Microsoft ํ์ต.