C# 키워드

키워드는 컴파일러에서 특별한 의미를 가지는 미리 정의된 예약 식별자입니다. 키워드의 접두사에 @ 기호가 없으면 프로그램에서 식별자로 사용할 수 없습니다. 예를 들어, @if는 올바른 식별자이지만 if는 키워드이므로 올바른 식별자는 아닙니다.

abstract

event

new

struct

as

explicit

null

switch

base

extern

object

this

bool

false

operator

throw

break

finally

out

true

byte

fixed

override

try

case

float

params

typeof

catch

for

private

uint

char

foreach

protected

ulong

checked

goto

public

unchecked

class

if

readonly

unsafe

const

implicit

ref

ushort

continue

in

return

using

decimal

int

sbyte

virtual

default

interface

sealed

volatile

delegate

internal

short

void

do

is

sizeof

while

double

lock

stackalloc

 

else

long

static

 

enum

namespace

string

 

컨텍스트 키워드

get

partial

set

value

where

yield

참고 항목

개념

C# 프로그래밍 가이드

기타 리소스

C# 참조