Skip to content

Instantly share code, notes, and snippets.

@pjastr
Created October 21, 2017 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjastr/2ca938d8ed51807cd87a0cab87326890 to your computer and use it in GitHub Desktop.
Save pjastr/2ca938d8ed51807cd87a0cab87326890 to your computer and use it in GitHub Desktop.

Różnice między static readonly a count:

  • static readonly nie musi być zainicjowane (nie musi mieć przypisanej wartości), inicjacja musi być dopiero w trakcie wykonywania programu
  • count musi być zainicjowane (mieć przypisaną wartość) na moment kompilacji programu.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment