Answers for "how to call an If statement only once in C#"

C#
0

how to call an If statement only once in C#

boolean firstRow = true;

while{row = result.next())
{
    if(firstRow)
    {
        firstRow = false;
        //do some setup 
    }

    //do stuff
}
Posted by: Guest on June-28-2021

Code answers related to "how to call an If statement only once in C#"

C# Answers by Framework

Browse Popular Code Answers by Language