Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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
1
CommandForce2
Math v9.1
c
C# virtual dispose
Sort A List of Ages of Students (Solution: Stack / O(N^3) Complexity)
jjj
W.I.P (c#)
zmeika
30272 Program Ex7_1 switch_int
Testing list