Jump to content
Wikibooks The Free Textbook Project

C# Programming/Keywords/const

From Wikibooks, open books for an open world
The latest reviewed version was checked on 19 September 2019. There are template/file changes awaiting review.

The const keyword is used in field and local variable declarations to make the variable constant. It is thus associated with its declaring class or assembly instead of with an instance of the class or with a method call. It is syntactically invalid to assign a value to such a variable anywhere other than its declaration.

Further reading



C# Keywords
Special C# Identifiers (Contextual Keywords)
Contextual Keywords (Used in Queries)

AltStyle によって変換されたページ (->オリジナル) /