Category: Tutorials

February leap year

C#: Is year a leap year or not? Code

Simple but quite common code used in a lot of situations where applications need to determine the date. This simple math based program allows us to easily determine if the year we have entered is a leap year or not.  

 

ASCII Table

ASCII Character Codes, C#

Today we are going to write a program in C# that accepts a character and determines using if statements whether or not it is an upper case letter, a lower case letter, a number or a special character. Put simply ASCII stands for the American Code for Information Interchange. It is a code that represents […]

webConfigSample

C# Patterns with Console.

This article is going to advance through the practice of drawing patterns within the console. We will use the triangle as an example. Triangle: 1 I am showing two techniques of doing this using a simple for loop. The first one will be like this:

And the second will follow this:

Example

[…]

Image5

Scientific Calculator in C# – Tutorial

Scientific Calculator in C#   In this article we will be exploring the development of a scientific calculator from start to finish in C#. This code is provided completely free for educational purposes.         To begin lets open up a new Visual Studio project – Windows Forms application as displayed below. Select […]

ConsoleArray

Sort Array C# – Single Dimension

Sort Array c# Our task here is to write a single dimension program for sorting an array of elements that have been inputted by a user in the console. We want to accept the integer values and then sort the input in ascending order and display the output. Below is the solution to our sorting […]

LINQ_logo_1

LINQ Part 1 – An Introduction to LINQ

Language Integrated Query (LINQ) is a query translation pipeline integrated into the .NET Framework. Simply put. LINQ is a layer between and application and the data store. It allows you to represent data as objects and query data in your object model. It can be used to express queries using any language that works with […]