what is a code block in asp.net using c#

The C#, Java, and C languages all rely heavily on curly braces—parentheses with a little more
attitude: {}. You can find the curly braces to the right of most keyboards (next to the P key);
they share a key with the square brackets [].
Curly braces group multiple code statements together. Typically, the reason you’ll want to
group code statements together is because you want them to be repeated in a loop, executed
conditionally, or grouped into a function. You’ll see all these techniques in this chapter. But in
each case, the curly braces play the same role, which makes C# simpler and more concise than
other languages that need a different syntax for each type of block structure:
{
// Code statements go here.
}

Admin

A Software Engineer, Social Media Marketing Expert, writer,

Post a Comment

Previous Post Next Post