Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Working nullable DateTime C#
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { // conversion of https://rextester.com/edit/DARXC69153 to c# foreach (var b in new[] {true, false}) { var d = !b ? DateTime.Today : (DateTime?)null; Console.WriteLine("Parameter b: " + b); Console.WriteLine("Result is Nothing: " + (!d.HasValue).ToString() + " '" + d.ToString() + "'"); } } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
test
Binary search tree - In-order Traversal
Rank
Some linq examples
a
Complex
LINQ Collections
StringCompare
prime number
Triangle
Please log in to post a comment.