Ken Brubaker

The ClavèCoder

<December 2008>
SuMoTuWeThFrSa
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910


Navigation

Subscriptions

News

Kenneth Brubaker
Senior Application Architect

Locations of visitors to this page

Post Categories



Tuesday, May 04, 2004 - Posts

C#: New nullable syntax
Anders Hejlsberg, et al., shared with the MVPs in April about extending the C# syntax to support nullable value types. In essence, int? maps to Nullable<System.Int32> just as int maps to System.Int32. They also introduce a ternary ?? operator such that x ?? 0 means (x != null) ? x : 0.  Very interesting. They got some howls but I hope this goes through. It's a baby step to X# bliss. [Via Ted Neward on TheServerSide.NET]

posted Tuesday, May 04, 2004 5:32 AM by kenbrubaker with 2 Comments

Debugging XmlSerializer: viewing the generated code

From the year-old-news department comes this nugget on Doug Purdy's old blog site. Do this:

<?xml version="1.0" encoding="utf-8" ?>

<configuration>
    <system.diagnostics>
        <switches>
            <add name="XmlSerialization.Compilation" value="1" />
        </switches>
    </system.diagnostics>
</configuration>

and you will see the generated serialization/deserialization code. Here's help from, Christoph Schittko, an MS MVP on xml. Also, Chris Sells has a serializability tester application, XmlSerializerPreCompiler (scroll down).

Have fun!

posted Tuesday, May 04, 2004 4:08 AM by kenbrubaker with 1 Comments




Powered by Dot Net Junkies, by Telligent Systems