No, a double semi-colon is never required. I’m slightly surprised that the compiler doesn’t complain that it’s an unreachable statement, but apparently it’s legal. It won’t do any harm, but equally it’s not a good idea.
More Related Contents:
- How do I match an entire string with a regex?
- How can I create a dynamic button click event on a dynamic button?
- How to return a value from a Form in C#?
- How to use signalr in Android
- Access to Modified Closure (2)
- GridView must be placed inside a form tag with runat=”server” even after the GridView is within a form tag
- How would you compare two XML Documents?
- Embedding assemblies inside another assembly
- What is the difference between Directory.EnumerateFiles vs Directory.GetFiles?
- How can I list all processes running in Windows?
- LINQ: Not Any vs All Don’t
- Why C# implements methods as non-virtual by default?
- What does “T” mean in C#?
- How can I implement an exhaustMap handler in Rx.Net?
- Transitive references in .Net Core 1.1
- How can I make the xmlserializer only serialize plain xml?
- Convert DateTime to Julian Date in C# (ToOADate Safe?)
- How to get a dimension (slice) from a multidimensional array
- Why would try/finally rather than a “using” statement help avoid a race condition?
- What is the difference between IEqualityComparer and IEquatable?
- C#: how to get an object by the name stored in String?
- Entity Framework 4: How to find the primary key?
- “MoveFile” function in C# (Delete file after reboot)
- How to make a regex match case insensitive?
- How to create a User Control with rounded corners?
- Accessing a Dictionary.Keys Key through a numeric index
- How do I get formatted and indented JSON in .NET using C#?
- Can I import a static class as a namespace to call its methods without specifying the class name in C#?
- C# OpenFileDialog Lock To Directory
- How to set text to a control from resource file in design time?