in parameter modifier was introduced in C# 7.2. It lets you pass (value) types by reference but at the same time protect you against modifying the actual instance. […]
Mono, Docker, 3.14, WebAPI on NTK 2016
This year I’ll be presenting at Microsoft’s NT Konferenca as I do every year. As the topic I’ve picked my experience of using Docker I gathered from a […]
Strong typing DisplayAttribute reference to Resources
Let’s say there is a decorated member with DisplayAttribute in code, i.e.: public enum SomeEnum { [Display(Name = “ResourceKey”, ResourceType=typeof(Resource)] SomeValue } That’s all right except for one […]
Use async keyword only when required
While async keyword is very useful it shouldn’t be used when it isn’t required. Imagine this method public async Task DoSomethingAsync() { await Task.Delay(1000); } The method works […]
Thinking about delayed getters on properties in C#6.0 or after that
Here is a typical scenario where one postpones property value creation until the property getter is accessed: private SomeType something; public SomeType Something { get { if (something […]