Mar
27th

A Better Way to Extract Data from DateTime

Posted by Amit |
Filed under .Net, C# |

Lately I took part in several code reviews and I noticed that whenever people need to extract the month name from the datetime object many different solutions are presented. Some of the solutions were not very successful, so I decided to shed some light on this issue through an example.
These are the most common (and [...]


Continue Reading...
Mar
26th

A New Pattern for Event Declaration

Posted by Amit |
Filed under .Net, C# |

We all know the pattern to declare an event in C#, fairly easy, here is a remainder:
1: public class EventTest
2: {
3: public event EventHandler MyEvent;
[...]


Continue Reading...