C# diff example

Created Diff never expires
18 removals
Lines
Total
Removed
Words
Total
Removed
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
26 lines
3 additions
Lines
Total
Added
Words
Total
Added
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
15 lines
if (!foo.Bar.HasValue)
if (!foo.Bar.HasValue)
{
{


#region stuff
#region stuff
stuff = Baz(foo);
singleStuff = Baz(foo);
if (stuff?.Count != 1)
if (singleStuff == null )
{
{
if (stuff?.Count > 1)
request.State = Type.TYPE_NONE.Id;
{
request.LastError = "stuff Has none";
foo.State = Type.TYPE_MULTIPLE.Id;
Logger.Warn($"stuff Has none");
request.LastError = "stuff Has multiple";
Logger.Warn($"stuff Has multiple {stuff?.Count}");
}
else
{
request.State = Type.TYPE_NONE.Id;
request.LastError = "stuff Has none";
Logger.Warn($"stuff Has none");
}

continue;
continue;
}
}
#endregion
#endregion

var singleStuff = stuff.Single();
}
}