Dave Zych

Writing your own Convert.ToBase64String in C#

Have you ever wondered what Base64 is? How it works? Why you need it? Have you ever wanted to write your own Base64 encoder? Well, my friend, you are in luck because that’s what we’re talking about today. To get started… What is Base64? Base64 is a common

Converting a binary string to an int in C#

Back in my previous post, Converting an int to a binary string [http://davidzych.com/2013/12/06/converting-an-int-to-a-binary-string-in-c/], we looked at how to write out the bits of an int without using the existing Convert.ToString [http://msdn.microsoft.com/en-us/library/14kwkz77%28v=vs.110%29.aspx] method

Converting an int to a binary string in C#

The .NET Framework has a built in overload of Convert.ToString [http://msdn.microsoft.com/en-us/library/14kwkz77%28v=vs.110%29.aspx] which takes 2 parameters: the int you want to convert and an int of the base you want to convert to. Utilizing this with base 2, you

When doing string concatenation in C#, why don't you have to call ToString on non string variables?

To get the string representation of a variable, in this case we’ll use int, there is no implicit conversion from int to string so you can call the ToString method: string s = myInt; //INVALID!! string s = myInt.ToString(); // Valid! When concatenating with another string, though, you don’t have

Fake Organization, with Gmail

A little while back, Google released an update to Gmail that included a new tabbed interface for your inbox. Google decided that [http://gmailblog.blogspot.com/2013/05/a-new-inbox-that-puts-you-back-in.html] sometimes it feels like our inboxes are controlling us, rather than the other way around and they set out to

Dave Zych © 2026