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, April 1, 2010

C# and static-ness

Deductively - in a console app, Program.Main is defined as static (presumably for a good reason) and if Main is static (= a class method, remember) then presumably all the other methods should be too.

And you can't refer to a non-static (instance) variable from a static method, because 'Object reference required' and /this/ isn't allowed in static methods.

So all the Program-level variables should be static.

Followers

Blog Archive