C# Tip: Mark a class as Sealed to prevent subclasses creation
The sealed keyword is often ignored, yet it can be important to define a proper class design. Continue readingC# Tip: Path.Combine and Path.Join are similar but way different.
When composing the path to a folder or file location, thePath
class can come in handy. Path.Join
and Path.Combine
may look similar, but their behavior differ in an unexpected way.
Continue reading
C# Tip: IFormattable interface, to define different string formats for the same object
Same object, different string representations. How do we achieve it in a standardised way? Continue readingC# Tip: ObservableCollection - a data type to intercept changes to the collection
ObservableCollection<T>
is a data type that allows you to react when an item is added or removed from the collection. Let’s learn more!
Continue reading
C# Tip: Use TestCase to run similar unit tests with NUnit
Learn how to organize similar unit tests using theTestCase
attribute in NUnit!
Continue reading