Answers for "exit and return in c#"

C#
1

exit a method c#

private void Test(int condition)
{
  if(condition)
    return; // Exit the methode

  // Here code if condition == false
}
Posted by: Guest on August-11-2020

C# Answers by Framework

Browse Popular Code Answers by Language