Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Thursday, January 6, 2011

C# case

switch (expression)
{
case constant-expression:
statement
jump-statement
[default:
statement
jump-statement]
}


jump-statement is either break, or goto case-label, where default is also an acceptable label. Eg 'goto case "x"'.

Fall-through from case to case is not allowed, except when you precede a case with any number of empty cases.

Followers

Blog Archive