示例#1
0
 static Formatter()
 {
     // "new" can be bad. It doesn't allow for dependency injection.
     dateFormatter = new DateFormat(2);
     intFormatter = new IntFormatter();
 }
示例#2
0
 static Formatter()
 {
     // "new" can be bad. It doesn't allow for dependency injection.
     dateFormatter = new DateFormat(2);
     intFormatter  = new IntFormatter();
 }