Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

exit a method c#

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

  // Here code if condition == false
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #exit #method
ADD COMMENT
Topic
Name
8+2 =