Category: C#
-
My thoughts on using regions in C#
Coding practices are such a divisive topic in any software team. Each of us will have our own preferences. But when we are in a team we need to bend our preferences a little, to accommodate the generally accepted coding practices of that team. Everyone will not agree on particular coding practice, but it’s important…
-
C# 7.0 Features – Tuples
Now that VS 2017 RC is released with bunch of cool features along with refactoring support leveraging C# 7.0 features, Now is the best time to take a deep dive in C# 7.0 features. We are going start with one of the most exciting feature called Tuples. What is Tuples? Tuples makes it easy to have…
-
Caller Information Attributes
Introduction .Net 4.5 introduced 3 new attributes: CallerFilePathAttribute, CallerLineNumberAttribute and CallerMemberAttribute which I think many of us might not even heard of. I came across this when I was reading Jon Skeet C# In Depth book. Feature By using these caller info attributes we can obtain the information about the caller to a method. You…