次の方法で共有


It's the most wonderful time of the year

Here's a little holiday cheer for you all. Or, at least for you all in Commonwealth countries.

static object M<T>(T t) where T : struct
{
return t;
}

int ii = 10;
int? jj = 20;
object xx = ii;
object yy = jj;
System.ValueType zz = ii;
IComparable aa = ii;
System.Enum bb = MidpointRounding.ToEven;
object cc = M(ii);

I hope you're having a festive holiday season. Happy Boxing Day, and we'll see you in the New Year for more fabulous adventures!

[Eric is on vacation; this posting is pre-recorded.]

Comments

  • Anonymous
    December 26, 2009
    Too cute - Happy Boxing Day all.

  • Anonymous
    December 26, 2009
    And, for the record, if asked to list statements that would cause boxing I'd have certainly missed the assignments to ValueType and Enum.  Subtle.

  • Anonymous
    December 27, 2009
    Merry x'mas to all who post here...

  • Anonymous
    December 27, 2009
    smacks forehead ...boxing...day...  duh...

  • Anonymous
    December 28, 2009
    I am sorry.. but I don't understand... is there any special/cute meaning of these codes other than boxing? Nope. The joke is that it was "Boxing Day" on the 26th, so I figured that some boxing conversions would be festive.  Remember, the function of my sense of humour is to amuse me, not you. -- Eric  

  • Anonymous
    December 28, 2009
    The comment has been removed

  • Anonymous
    December 29, 2009
    And I was still trying to figure out what the heck a "Boxing day" is..  we poor continental europeans ;)