"DateTime?" Correct Syntax or Compiler Bug

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Why does this property "DateTime?" compile?

public DateTime? test
{
get
{
return DateTime.Now;
}

}

I figured it was special syntax but I couldn't find documentation

TIA,
 
Cool! Thanks for the help and the lesson. I'm reading up on the other new
aspects as well.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top