Learn what it means to convert data from one type to another in C# (type conversion). C#, like most programming languages, has several built-in data types such as integer, string, and boolean. These classifications determine the range of values a variable of that type can hold, how the data will be stored, and what can ...continue reading "C# Type Conversion (and Coffee!)"
Category: Uncategorized
PadLeft to Indent and Center Text (C# Console)
Indent, prepend characters, and center text. String.PadLeft can be used in two ways. The first returns a new string padded with spaces, and the second returns a new string padded with a character. PadLeft(Int32): new string returned padded with spaces. Pass in an integer (the length of string plus the number of spaces to prepend). ...continue reading "PadLeft to Indent and Center Text (C# Console)"