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”
Category Archives: C#
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”
C# – Conditional if … else if … else statement
As you may guess, one of the very basic form of conditional statements in C# and like many others is if … else statement. = assigment == equality … or …. evaluate other mutually exclusively options;
C# – Expressions and Statements
Today, we are going to get the knowledge of expressions. Expressions have one or more operands and zero or more operators that evaluate to a single value. Statements – A complete instruction – assigment of an expressions to a variable, an increment / decrement etc. Statement must end in semi-colon; Whitespace is ignored (use forContinueContinue reading “C# – Expressions and Statements”