About 127,000 results
Open links in new tab
  1. Control variable scope and logic using code blocks in C#

    Use code blocks with more confidence, understanding how they impact the visibility and accessibility of both higher and lower-level constructs in your code.

  2. Essential C#: Code Blocks ( {})

    With curly braces, however, we can combine statements into a single statement called a block statement or code block, allowing the grouping of multiple statements into a single statement that is the consequence.

  3. visual studio - generate code block in C# - Stack Overflow

    Oct 7, 2013 · In C# with Visual Studio exist the Code Snippets, that are ready-made snippets of code you can quickly insert into your code. You can insert a code snippet at the cursor location, or insert a surround-with code snippet around the currently selected code.

  4. Understand and use code snippets - Visual Studio (Windows)

    Apr 25, 2025 · Code snippets are small blocks of reusable code that you can add to a code file. Snippets usually contain often-used code blocks such as Try...Finally or If...Else blocks. You …

  5. Understanding Dotnet Visual Blocks: Simplifying .NET Development

    Apr 21, 2025 · discover how dotnet visual blocks can revolutionize your .net development process. learn about key components real-world examples and future possibilities

  6. GitHub - 20chan/Blocky: C# visual block programming.

    C# visual block programming. Contribute to 20chan/Blocky development by creating an account on GitHub.

  7. .net - With block equivalent in C#? - Stack Overflow

    Jan 26, 2009 · Using an extension method and generics you can create something that is vaguely equivalent to a With statement, by adding something like this: public static T With<T>(this T …

  8. C# 14 - Exploring extension members - .NET Blog

    3 days ago · C# 14 introduces extension members. See how the `extension` syntax offers flexibility for extension authors and continuity for developers using extensions

  9. Expand and Collapse Code Blocks on the fly in Visual Studio

    Feb 13, 2016 · We all are very much familiar with #region in Visual Studio that let us specify a block of code to categorized and allow to expand and collapse. With having a region name given, it is often easier to segregate the code module and keep on the code block which is required.

  10. Code Blocks (VB.Net and C# Cross Reference Guide)

    VB.Net, like VB Classic code blocks, are surrounded by statement ending keywords that all use End such as End Class, End Sub, End Function, and End If. MySharedFunction = 12345. C# uses braces {} to indicate a code block of more than one line. …