This edition has the following infographics:
ConfigureAwait
onIAsyncDisposable
- Index in
foreach
- Non-destructive mutations with
struct
- Returning
null
for aTask
- Throw-Helper
- verbatim strings
This edition has the following infographics:
ConfigureAwait
on IAsyncDisposable
foreach
struct
null
for a Task
Sometimes I publish parts of my infographics I publish on various channels with more explanation. And then sometimes I don't. This time I just put some of my (hopefully self-explanatory) infographics here. Pure functions Generator functions Cost of anonymous types
Are these two expressions the same? <div class="position-relative"><button class="btn btn-sm position-absolute top-0 end-0 m-2 border border-primary text-primary copy-btn" type="button" onclick="navigator.clipboard.writeText(this.parentElement.querySelector('pre code').textContent)"> <i class="copy"></i> </button> public class MyClass { public int A { get; } = Random.Shared.Next(1000); public int B = Random.Shared.Next(1000); } </div>
This edition has the following infographics: DebuggerDisplayAttribute Entity Framework input and LINQ - is it safe? ExceptionDispatchInfo implicit and explicit operator