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 - 928, trackbacks - 120

My Links

Archives

Post Categories

Image Galleries

.RO Blogs

.RO People

.RO Sites

Blogs

Furls

Links

vinCitori

Quiz Sharp 1

Bello il quiz di Andrea! Questo è il mio :-)

class Q1: System.NullReferenceException
{
  static int Main()
  {
    try
    {
      return 0 + (Q1)null;
    }
    catch(Q1 q)
    {
      throw;
    }
  }

  public static int operator +(int i, Q1 q)
  {
    return i + q.Message.Length;
  }
}

Si ottiene:

  • A. NullReferenceException;
  • B. Q1;
  • C. StackOverflowException.

Print | posted on lunedì 17 maggio 2004 23.53 | Filed Under [ Quiz Sharp ]

Feedback

Gravatar

# Vengo da un quiz lontano

04/10/2005 13.22 | Web Log di Adrian Florea

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 8 and 6 and type the answer here:

Powered by: