KO CSharp Keyword var - LIHACHTETAN/ClassicUO-Bad-Newbie-CSharp-Scripts-IDE GitHub Wiki
ะฃะบัะฐัะฝััะบะฐ ยท ะ ัััะบะธะน ยท English ยท Deutsch ยท Franรงais ยท Italiano ยท Espaรฑol ยท ็น้ซไธญๆ ยท ๆฅๆฌ่ช ยท ํ๊ตญ์ด
ํธ๋๋ถ C# ยท ์ค์ฉ ๊ฐ์ด๋
์ด๋์ ๋ผ์ด์ ์์ ์ง์ญ ๋ณ์์ ์ ์ ์ ํ์ ์ ์ถํ๋๋ก ์ปดํ์ผ๋ฌ์ ์์ฒญํฉ๋๋ค. ์ด๊ฒ์ ์ญ๋์ ์ด์ง ์์ต๋๋ค.
์ด ์์ ๋ฅผ Example.cs๋ก ๋ฐ๋ก ์ ์ฅํ๊ณ ์ด ํ์ด์ง์ ๋ค๋ฅธ ์์ ์ ๋
๋ฆฝ์ ์ผ๋ก ์คํํ์ธ์.
Example.cs:
// PROJECT-EXAMPLE
var count = 3;
System.Console.WriteLine(count.GetType().Name);๊ฒฐ๊ณผ:
Int32
var value = expression;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)
{
var number = 12;
var name = "ore";
Console.WriteLine($"{number.GetType().Name}:{name.GetType().Name}");
}
}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)
{
var item = new { Name = "ore", Count = 3 };
var list = new List<int> { 1, 2, 3 };
Console.WriteLine($"{item.Name}:{list.Sum()}");
}
}๊ณต์ ์ถ์ฒ: Microsoft ํ์ต.