Rehman Shahid
What is short-circuiting?
By Rehman Shahid in C# on Feb 11 2019
  • Kiran Mohanty
    Aug, 2020 30

    .net run time tries to find the requested result as earliest and returns it back the caller. This is called short-circuiting.

    Ex:-

    if(statement 1){
    return 1;
    }
    else if( statement 2){
    return 2;
    }
    else{
    return 3;
    }

    as soon as any statement expression is true , runtime returns that value as response and hence short-circuiting the request pipeline.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS