KO CSharp Directive Pragma - 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
#pragma warning disable CS0168
int unused;
#pragma warning restore CS0168
System.Console.WriteLine("Ready");

๊ฒฐ๊ณผ:

Ready

ํ†ต์‚ฌ๋ก 

#pragma warning disable CODE / restore CODE

์˜ˆ์‹œ 1

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)
    {
        #pragma warning disable CS0168
        int unused;
        #pragma warning restore CS0168
        Console.WriteLine("Ready");
    }
}

์˜ˆ์‹œ 2

#pragma checksum "Generated.cs" "{8829d00f-11b8-4213-878b-770e8597ac16}" "00112233445566778899AABBCCDDEEFF"
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("Source mapped");
    }
}

๊ณต์‹ ์ถœ์ฒ˜: Microsoft ํ•™์Šต.