Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MSIL : Endfilter Opcode

Featured Replies

Posted

The version lower than C#6 compiler can produce the Endfilter Opcode? What C# code?

Version higher than C#6 can produce the Endfilter Opcode.

try
{
   throw new ApplicationException("Error");
}
catch (ApplicationException ex) when (ex.Message == "Error")
{
   Console.WriteLine("OK");            
}

 

Edited by Perplex

Before VS2015 only Visual Basic .NET compiler used exception filters.

Exception filters were added to C# in v6, so you need to use a compiler and such that supports it. VS2015 was the main IDE that included and supported it first, then any edition afterward. However, you can manually use the Roslyn compiler to support it in any version as well: https://github.com/dotnet/roslyn

But if you are looking to target C# 5 or lower, then you will not be able to use the feature. (The .NET framework and it's various libs are open source now so you can technically manually go add the features you want to a lower version of the framework but it would be non-standard and unsupported on others systems.)

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.