Tagged: vb.net

C# string palindrome check

Cool observation Morpheus, but what exactly is a palindrome? For people unfamiliar with this term, a quick google search defines it as: a word, phrase, or sequence that reads the same backwards as forwards, e.g. “madam” or “nurses run”. The definition is pretty self explanatory. Now, let’s think of an algorithm to check if a given string is a palindrome...

More

VB.NET ControlChars class for C#

Do you miss the so-useful ControlChars class of VB.NET in Visual C#? I know I do. Can we use it without having to import the Microsoft.VisualBasic namespace in our project? No problem, we’ll create a class ourselves to mimic it’s functionality. Instructions Right click your project’s solution Select “Add” followed by “New Item…” Click on “Class”, name your class ControlChars.cs...

More