Web Log di Adrian Florea

"You know you've achieved perfection in design, not when you have nothing more to add, but when you have nothing more to take away." Antoine de Saint-Exupery
posts - 440, comments - 2715, trackbacks - 3944

My Links


Post Categories

Image Galleries

.RO Blogs

.RO People

.RO Sites





Quiz Sharp 4

using System;
class Foo
  static void Main(ref string[] args)
    Console.WriteLine("Hello World of ref!");

  static void Main(string[] args)
    Console.WriteLine("Hello World!");

  • A. non compila
  • B. compila con warning
  • C. compila senza warning

A proposito del mondo dei ref, approfitto per passare questo consiglio di Brad Abrams (SLAR, p. 304):
"In general by reference parameters make the APIs much harder to use and should be avoided in good library design"
Chiaro che il "good library design" non c'entra nulla col "good quiz design" :-)

Print | posted on mercoledì 19 maggio 2004 19:18 | Filed Under [ Quiz Sharp ]

Powered by:
Powered By Subtext Powered By ASP.NET