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”Continue reading “C# – Working with Spans of Time”

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 forContinue reading “C# – Conditional Ternary / Comparision and Logical Operator”

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 forContinue reading “C# – Expressions and Statements”