Today we will explore in brief single dimensional array; Index vs. Elements Accessor vs. Stored Values Indexes are zero based Declaring Arrays Declaring and Initializing Arrays Setting / Getting Values As usual, a bit detailed explanation from microsoft.com You can declare a single-dimensional array of five integers as shown in the following example: C# int[]ContinueContinue reading “C# – Single Dimensional Array”
Category Archives: Software Language
C# – Formatting Strings
Today, a topic which is mostly neglected from many of us. Here it is Concenate strings + += Format Strings Format Numbers Tue, 15, 09, 1988 Formatting Currency 5.000 € Here is again detail information from microsoft.com Standard numeric format strings are used to format common numeric types. A standard numeric format string takes theContinueContinue reading “C# – Formatting Strings”
C# – Working with Spans of Time
As the beginning of the week, I want to show you ‘working with Spans of Time’ Let’s jump into topic as usual; Create and Initialize new TimeSpans //Days.Hours:Minutes:Seconds:Miliseconds Get Individual Parts …… or get TOTAL elapsed time as double representing both of number of days / hour / etc. AND fractional values representing “left overs”ContinueContinue reading “C# – Working with Spans of Time”
C# – Working with Date and Times
If you follow me a bit, you are aware of that I jump directly into the subject without saying much so let’s go on. In order to create a new DateTime object Formatting ….. many options; Retrieving parts; DateTime Math: “Chaining” = using multiple methods together with . operator
C# – Conditional Ternary / Comparision and Logical Operator
As usual today as well I will be showing operators in C# Shortcut for evaluating an expression and returning a result; Conditional Ternary Operator Here we are saying that if a and b is equal, evaluate first expression which is “Equal”, if not then evaluate “Not Equal” Comparision and Logical Operator Comparision operators used forContinueContinue reading “C# – Conditional Ternary / Comparision and Logical Operator”