Shrikrishn Bansal
Can we have return keyword in finally block?

Can we have return keyword in finally block?

By Shrikrishn Bansal in .NET on Dec 01 2022
  • Hisham Shahid
    Dec, 2022 6

    In c# it is not allowed to use return keyword in finally block.

    For reference check below link

    https://www.geeksforgeeks.org/c-sharp-finally-keyword/

    • 3
  • Digambar Bhandare
    Jan, 2023 28

    No

    • 0
  • Ajay Singh
    Dec, 2022 15

    C# doen not allow you to leave any statement in finally block. SO return keyword in finally block is not possible.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS