@{ var flag = true; }
      @while ()
      {
        
         = false;
      }

      Csharp language logo
      ASP NET Core Razor Creates a while loop for Razor

      C# recipes

      The code above sets flag to true while it's executing, and then it sets it to false once the while loop ends.

      Shortcut: rz_while

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.