Skip to main content

Scoping

Opening Curly Bracket

All opening curly brackets ({) should be on the same with the previous syntax.

Examples

if (IsHit) {
  // Do something
}
public class RaceCar {
  // Do something
}
switch (MessageType) {
  case MessageType.Local:
    // Do something
    break;
}

Opening Curly Bracket

All opening curly brackets ({) should be on the same with the previous syntax.

Examples

if (IsHit) {
  // Do something
}