Q: if(s == "foo") Continue reading
The “feature” is called XML comments. Just type /// right before your methods and VS will generate some xml tags. These will be used to show the tooltip as well as parameter info also. Continue reading
Using built-in string methods can help us get the desired result but you repeat the code everywhere in need and I felt isolating the logic to one place will help the logic maintainable and testable. We can have all the below methods in a class file. (
StringExtensions ) Continue reading
var withoutDuplicates = reorderTitles.GroupBy(z => z.NewOrder).Select(z => z.First()).ToList();
//reorderTitles is a collection and we are removing items NewOrder property. Continue reading
List can be filtered using various methods like Linq
Where or using
List.Contains method but there are situations where you need some custom logic while filtering. Continue reading
y = x + moreValue;
y = x;
} Continue reading
A wrapper class is any class which “wraps” or “encapsulates” the functionality of another class or component. This provides a level of abstraction from the implementation of the underlying class and “hides” the implementation from the outside world.
Dim stringsList As List(Of String).
Dim newString As String = String.Join(“,”, stringsList)