FWGX Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@canpolat@programming.dev to C Sharp@programming.devEnglish • 1 year ago

Switch statement fallthrough in C#?

stackoverflow.com

external-link
message-square
12
fedilink
6
external-link

Switch statement fallthrough in C#?

stackoverflow.com

@canpolat@programming.dev to C Sharp@programming.devEnglish • 1 year ago
message-square
12
fedilink
Switch statement fallthrough is one of my personal major reasons for loving switch vs. if/else if constructs. An example is in order here: static string NumberToWords(int number) { string[] nu...
  • mihies
    link
    fedilink
    1•1 year ago

    That doesn’t sound very effective though.

    • @CCMan1701A@startrek.website
      link
      fedilink
      1•1 year ago

      It works for older platforms that only run CF 3.5

      • mihies
        link
        fedilink
        3•1 year ago

        Is CF still a thing? But anyway, if it works, it works :)

C Sharp@programming.dev

!csharp@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !csharp@programming.dev

A community about the C# programming language

Getting started

  • C# @ Wikipedia
  • A Tour of the C# Language
  • Learn C#

Useful resources

  • C# documentation
  • C# Language Reference
  • C# Programming Guide
  • C# Coding Conventions
  • .NET Framework Reference Source Code

IDEs and code editors

  • Visual Studio (Windows/Mac)
  • Rider (Windows/Mac/Linux)
  • Visual Studio Code (Windows/Mac/Linux)

Tools

  • Decompilers: ILSpy, dotPeek
  • Scratchpad: LINQPad
  • Online playground and IL viewer: SharpLab

Rules

  • Rule 1: Follow Lemmy rules
  • Rule 2: Be excellent to each other, no hostility towards users for any reason
  • Rule 3: No spam of tools/companies/advertisements

Related communities

  • c/dotnet
  • 4 users / day
  • 12 users / week
  • 13 users / month
  • 103 users / 6 months
  • 1.69K subscribers
  • 134 Posts
  • 256 Comments
  • Modlog
  • mods:
  • Ategon
  • @nibblebit@programming.dev
  • @Spyros@programming.dev
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org