KO CSharp Complete Reference - LIHACHTETAN/ClassicUO-Bad-Newbie-CSharp-Scripts-IDE GitHub Wiki
ะฃะบัะฐัะฝััะบะฐ ยท ะ ัััะบะธะน ยท English ยท Deutsch ยท Franรงais ยท Italiano ยท Espaรฑol ยท ็น้ซไธญๆ ยท ๆฅๆฌ่ช ยท ํ๊ตญ์ด
๊ฑด์ถ ์ ์ฒด ๊ฐ์ด๋ C#
์์ฒด ํฌํจ๋ ์์์๋ ์ผ๋ฐ์ ์ธ C# 14: ๊ธฐ๋ณธ ๋๋ ์ต์์ ์ฝ๋, ๋ค์ค ํ์ผ .csproj ๋ฐ ํน๋ณํ ํ์๋ .csx๊ฐ ์๋ ๊ฐ๋ณ .cs ํ๋ก๊ทธ๋จ์ ์ค๋ช
ํฉ๋๋ค. ๊ฐ ํ๋ก๊ทธ๋จ์ ๋ณ๋๋ก ์์๋ฉ๋๋ค. Console.WriteLine ์ฝ์์ ์๋๋ค. ๊ฒ์ ๋ก๊ทธ์ ๊ฒฝ์ฐ ICSharpScript์ context.UO.Print(...) ๋๋ .csx์ UO.Print(...)๋ฅผ ์ฌ์ฉํ์ธ์.
์ค์ฉ ๊ฐ์ด๋ ยท ํ๋ก๊ทธ๋จ ๊ตฌ์กฐ ยท ๊ทธ๋ฃน UO
๊ฐ๋จํ ์์ (Example.cs)
์ด ์์ ๋ฅผ Example.cs๋ก ๋ฐ๋ก ์ ์ฅํ๊ณ ์ด ํ์ด์ง์ ๋ค๋ฅธ ์์ ์ ๋
๋ฆฝ์ ์ผ๋ก ์คํํ์ธ์.
Example.cs:
// PROJECT-EXAMPLE
int count = 2;
count += 3;
System.Console.WriteLine(count);
๊ฒฐ๊ณผ:
5
ํค์๋ ๋ฐ ์ปจํ ์คํธ
| ๊ฑด์ค | ์ค๋ช ๋ฐ ์ ์ฒด ์ | ์ํ |
|---|---|---|
abstract |
C#: abstract |
C# 14 |
as |
C#: as |
C# 14 |
base |
C#: base |
C# 14 |
bool |
C#: bool |
C# 14 |
break |
C#: break |
C# 14 |
byte |
C#: byte |
C# 14 |
case |
C#: case |
C# 14 |
catch |
C#: catch |
C# 14 |
char |
C#: char |
C# 14 |
checked |
C#: checked |
C# 14 |
class |
C#: class |
C# 14 |
const |
C#: const |
C# 14 |
continue |
C#: continue |
C# 14 |
decimal |
C#: decimal |
C# 14 |
default |
C#: default |
C# 14 |
delegate |
C#: delegate |
C# 14 |
do |
C#: do |
C# 14 |
double |
C#: double |
C# 14 |
else |
C#: else |
C# 14 |
enum |
C#: enum |
C# 14 |
event |
C#: event |
C# 14 |
explicit |
C#: explicit |
C# 14 |
extern |
C#: extern |
C# 14 |
false |
C#: false |
C# 14 |
finally |
C#: finally |
C# 14 |
fixed |
C#: fixed |
C# 14 |
float |
C#: float |
C# 14 |
for |
C#: for |
C# 14 |
foreach |
C#: foreach |
C# 14 |
goto |
C#: goto |
C# 14 |
if |
C#: if |
C# 14 |
implicit |
C#: implicit |
C# 14 |
in |
C#: in |
C# 14 |
int |
C#: int |
C# 14 |
interface |
C#: interface |
C# 14 |
internal |
C#: internal |
C# 14 |
is |
C#: is |
C# 14 |
lock |
C#: lock |
C# 14 |
long |
C#: long |
C# 14 |
namespace |
C#: namespace |
C# 14 |
new |
C#: new |
C# 14 |
null |
C#: null |
C# 14 |
object |
C#: object |
C# 14 |
operator |
C#: operator |
C# 14 |
out |
C#: out |
C# 14 |
override |
C#: override |
C# 14 |
params |
C#: params |
C# 14 |
private |
C#: private |
C# 14 |
protected |
C#: protected |
C# 14 |
public |
C#: public |
C# 14 |
readonly |
C#: readonly |
C# 14 |
ref |
C#: ref |
C# 14 |
return |
C#: return |
C# 14 |
sbyte |
C#: sbyte |
C# 14 |
sealed |
C#: sealed |
C# 14 |
short |
C#: short |
C# 14 |
sizeof |
C#: sizeof |
C# 14 |
stackalloc |
C#: stackalloc |
C# 14 |
static |
C#: static |
C# 14 |
string |
C#: string |
C# 14 |
struct |
C#: struct |
C# 14 |
switch |
C#: switch |
C# 14 |
this |
C#: this |
C# 14 |
throw |
C#: throw |
C# 14 |
true |
C#: true |
C# 14 |
try |
C#: try |
C# 14 |
typeof |
C#: typeof |
C# 14 |
uint |
C#: uint |
C# 14 |
ulong |
C#: ulong |
C# 14 |
unchecked |
C#: unchecked |
C# 14 |
unsafe |
C#: unsafe |
C# 14 |
ushort |
C#: ushort |
C# 14 |
using |
C#: using |
C# 14 |
virtual |
C#: virtual |
C# 14 |
void |
C#: void |
C# 14 |
volatile |
C#: volatile |
C# 14 |
while |
C#: while |
C# 14 |
add |
C#: add |
C# 14 |
allows |
C#: allows |
C# 14 |
alias |
C#: alias |
C# 14 |
and |
C#: and |
C# 14 |
ascending |
C#: ascending |
C# 14 |
args |
C#: args |
C# 14 |
async |
C#: async |
C# 14 |
await |
C#: await |
C# 14 |
by |
C#: by |
C# 14 |
closed |
C#: closed |
preview C# 15 |
descending |
C#: descending |
C# 14 |
dynamic |
C#: dynamic |
C# 14 |
equals |
C#: equals |
C# 14 |
extension |
C#: extension |
C# 14 |
field |
C#: field |
C# 14 |
file |
C#: file |
C# 14 |
from |
C#: from |
C# 14 |
get |
C#: get |
C# 14 |
global |
C#: global |
C# 14 |
group |
C#: group |
C# 14 |
init |
C#: init |
C# 14 |
into |
C#: into |
C# 14 |
join |
C#: join |
C# 14 |
let |
C#: let |
C# 14 |
managed (function pointer calling convention) |
C#: managed โ ํจ์ ํฌ์ธํฐ ํธ์ถ ๊ท์น |
C# 14 |
nameof |
C#: nameof |
C# 14 |
nint |
C#: nint |
C# 14 |
not |
C#: not |
C# 14 |
notnull |
C#: notnull |
C# 14 |
nuint |
C#: nuint |
C# 14 |
on |
C#: on |
C# 14 |
or |
C#: or |
C# 14 |
orderby |
C#: orderby |
C# 14 |
partial (type) |
C#: partial์ ๋ถ๋ถํ |
C# 14 |
partial (member) |
C#: partial์ ๋ถ๋ถ ์ฉ์ด์
๋๋ค. |
C# 14 |
record |
C#: record |
C# 14 |
remove |
C#: remove |
C# 14 |
required |
C#: required |
C# 14 |
safe |
C#: safe |
preview C# 15 |
scoped |
C#: scoped |
C# 14 |
select |
C#: select |
C# 14 |
set |
C#: set |
C# 14 |
unmanaged (function pointer calling convention) |
C#: unmanaged โ ํจ์ ํฌ์ธํฐ ํธ์ถ ๊ท์น |
C# 14 |
unmanaged (generic type constraint) |
C#: unmanaged๋ ์ ํ ๋งค๊ฐ๋ณ์ ์ ์ฝ์กฐ๊ฑด์
๋๋ค. |
C# 14 |
value |
C#: value |
C# 14 |
var |
C#: var |
C# 14 |
when (filter condition) |
C#: when โ ํํฐ ์กฐ๊ฑด |
C# 14 |
where (generic type constraint) |
C#: where๋ ์ ํ ๋งค๊ฐ๋ณ์ ์ ์ฝ์กฐ๊ฑด์
๋๋ค. |
C# 14 |
where (query clause) |
C#: where โ LINQ clause |
C# 14 |
with |
C#: with |
C# 14 |
yield |
C#: yield |
C# 14 |
์ฐ์ฐ์ ๋ฐ ํํ์
- ์ฐ์
- ์ฆ๊ฐ
- ๋น๊ต
- ํ๋ฑ
- ๋ ผ๋ฆฌ์ฐ์ฐ
- ๋นํธ ๋ฐ ์ํํธ
- ๊ณผ์
- null์ ๊ฐ
- ์กฐ๊ฑด์
- ํ์, ํธ์ถ ๋ฐ ์์ธ
- null ํ์ฉ ๊ฒฝ๊ณ ์ต์
- ๋ ์ง์ ๋ฐ ๋ฒ์
- ์์ง ๋ฐ ํ์ฐ
- ๋๋ค์๊ณผ ์ ์ฒด์
- ๋ช ์์ ๋ณํ
- ๋๋ค์ ํ์ ์
- ํฌ์ธํฐ๋ฅผ ์ฌ์ฉํ ์์
- ๋ฌธ์์ด ํ์
- null์ ํตํ ํ ๋น-์กฐ๊ฑด๋ถ
์ง์์ด
- ์กฐ๊ฑด๋ถ ์ปดํ์ผ
- ์ปดํ์ผ ๊ธฐํธ
- ๋๋ง ๊ฐ๋ฅ ์ปจํ ์คํธ
- ์ฝ๋ ์ถ์
- ์ปดํ์ผ๋ฌ ๋ฉ์์ง
- ๋ช ์์ ์ปดํ์ผ ์ค๋ฅ
- ์ง๋จ๊ด๋ฆฌ
- ์๋ ์์น ํ์
- .csx ์์ค ์ฐ๊ฒฐ ์ค
- ์ด์ ๋ธ๋ฆฌ๋ฅผ .csx์ ์ฐ๊ฒฐ
C# ๊ตฌ๋ฌธ๊ณผ .NET ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ ์๋ก ๋ค๋ฅธ ์์ค์ ๋๋ค. ์ถ๊ฐ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๊ฒฝ์ฐ ์ข ์์ฑ์ .csproj์ ์ ์ธ๋ฉ๋๋ค. ํ์ฌ ๊ณต์ ์นดํ๋ก๊ทธ์ ์์ฑ๋๋ฅผ ์ํด ๋ฏธ๋ฆฌ๋ณด๊ธฐ ํ์ด์ง๊ฐ ํฌํจ๋์ด ์์ผ๋ฉฐ ํฅํ ํ๋ซํผ์ ๋ํ ์๊ตฌ ์ฌํญ์ ๋ช ํํ๊ฒ ๋ํ๋ ๋๋ค.
๊ณต์ ์นดํ๋ก๊ทธ: ํค์๋ Microsoft ๋ฐ ์ฐ์ฐ์ Microsoft.