View Single Post
  #4 (permalink)  
Old July 28th, 2011, 12:40 PM
Rod Stephens's Avatar
Rod Stephens Rod Stephens is offline
Wrox Author
Points: 3,166, Level: 23
Points: 3,166, Level: 23 Points: 3,166, Level: 23 Points: 3,166, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jan 2006
Location: , , .
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts

Yes, String.Format is a lot like printf (or probably really sprintf). The time I probably use it most is when I want to align things in columns.

Modules are pretty easy. They're simply code like global variables and routines that sits out there for any part of the program to use. The only really different thing is that code modules don't have any associated class. In contrast, C# doesn't have code modules so every piece of code must be in a class. To get a similar effect, you create a class (often called Globals or something similar) and give it static (shared) members so all of the rest of the code can use it without instantiating the class.

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
The Following User Says Thank You to Rod Stephens For This Useful Post:
eightbits2011 (July 30th, 2011)