Can switch statements use char? – Page 2 – Enpatika
Skip to content
Yeni Enpatika Logo

Enpatika

En Güncel Oyun ve Sistem Gereksinimleri Sitesi

  • Ana Sayfa
  • Gizlilik Politikası
  • Telif Hakları
  • İletişim
  • taraftar tv apk

Can switch statements use char?

Can we use contains in switch case?

1 April 2022 Enpatika.com Genel

Nope, switch statement requires compile time constants . The statement message. Contains(“test”) can evaluate true or false depending on the message so it is not a constant thus cannot be used as a ‘case’ for switch statement.

Read more

Posts pagination

«Previous Posts 1 2
WordPress Theme: Gridbox by ThemeZee.