C# Language

Simple Applications

C# is an international standard programming language used to create instructions that direct the computer about what to do, when to do it, and how to do…

5 min read1,074 words

C# is an international standard programming language used to create instructions that direct the computer about what to do, when to do it, and how to do something. C# 4 is the new version of the C# computer language. This web site is dedicated to C#, providing lessons, tutorials, and topics on various issues. To follow the lessons on this site, you must use at least the csc compiler, which you get from having the .NET Framework installed in your computer. The best way is to use either Microsoft Visual C# 2010 Express, which is free, or Microsoft Visual Studio 2010. Enjoy. Language Fundamentals 01:: Introduction to MS Visual Studio 02:: Introduction to C# Projects 03:: Introduction to Values of a Program 04:: Extended Values 05:: Operators and Operands Classes 06:: Introduction to Classes 07:: Introduction to Methods of a Class 08:: Passing Arguments to a Method 09:: Class Construction Language Accessories 10:: Namespaces 11:: Libraries 12:: Staticity 13:: Mathematic Functions 14:: Data Reading and Formatting 15:: Combinations of Classes Logic and Conditions 16:: Introduction to Cconditions 17:: Conditional Statements 18:: Conditional Switches 19:: Counting and Looping 20:: Methods and Conditional Statements

  • C#
  • Microsoft Visual C#
  • ASP.NET

Fundamental Topics Classes The Properties of a Class Inheritance Partial Class Implementation Abstract Classes #Sealed Classes | #Nesting a Class | #Interfaces | #Structures Arrays Fundamentals of Lists & Collections 1. Introduction to Arrays 5. Jagged Arrays 2. Arrays of Primitive Types 3. Arrays of Class Types 4. Mutltidimensional Arrays Libraries Built-In and Custom Libraries Introduction to Custom Libraries Introduction to Built-in Libraries Using the Visual Basic Library Interoperability (Using Win32 or C++/CLI Libraries) Topics #The Main() Function Static Variables #Enumerations Static Methods Namespaces Static Classes #Recursion Date/Time Values #Operator Overloading Delegates Language Integrated Query (LINQ)

Introduction to LINQConjunction and Disjunction
Introduction to the LINQ and ClassLINQ Operators
Sorting a ListLINQ and the Enumerable Class
Applying CriteriaLINQ and Arrays
LINQ and the String ClassGrouping Records
Joining Records
EnumerationsLogical Conjunction
Logical OperatorsLogical Disjunction
Libraries
Creating a Custom Library
Using Visual Basic Functions
Using a C++/CLI Library
Calling a Win32 Function
XMLData Sets
Introduction to XMLA Data Set
The Nodes of an XML ElementThe Tables of a Data Set
Operations on XML ElementsThe Columns of a Table
The Attributes of an XML ElementThe Records of a Table
Characteristics of XML NodesRecords Management
ADOMiscellaneous
Introduction to ADOMathematics Functions
ADO Databases

File Processing

  • Introduction to File Processing
  • Detailts on File Processing
  • Files Operations
  • Serialization

Errors/Exception Handling/Debugging

  • Introduction to Errors and Debugging
  • Options on Debugging
  • Introduction to Exception Handling
  • Using Exception Handling

Collections

  • Introduction to Collections
  • Iterating Through a Collection
  • Introduction to Generics
  • Creating and Using Generic Classes
  • Creating and Using a Generic Interface
  • Introduction to Linked Lists
  • Operations on Linked Lists
  • Introduction to Stacks
  • The .NET Framework Built-In Stack Class
  • Introduction to Queues
  • The .NET Framework Built-In Queue Class
  • Introduction to Indexers
  • Indexers and Classes
  • Covariance and Contravariance

Keywords

  • ♦ enum
  • ♦ dynamic
  • ♦ in (Generic)
  • ♦ new (Generic)
  • ♦ out (Generic)
  • ♦ protected
  • ♦ where (Generic)

Built-In Classes

♦ Array♦ ArrayList♦ DateTime
♦ Environment♦ Hash Table
♦ List<>♦ Object
♦ Queue♦ Random♦ Sign
♦ Stack♦ Strings♦ Type

Built-In Interfaces

♦ IClonable♦ IComparable♦ IDisposable
♦ IList<>

.NET Framework Classes

  • Console
  • Mathematic Functions
  • #Introduction

Conditional Topics

Simple Applications#

List An example of a list class. Using an Interface to Declare a Variable Here is an example of an interface, including a class that implements it, and creating an object from it. Greatest Common Divisor The greatest common divisor of two positive integers is the highest number that can divide those two other numbers. This example shows how to find the greatest common divisor of two numbers. Array Resizing This example shows how you can increase the number of items in an array if you have to add values beyond the original size. Linked List 1 This is an example of a linked list, which is a technique of creating a collection of items where an item can be located based on another existing item. Linked List 2 Here is another example of a linked list. This time, the list allows you to add an item to the beginning or the end of the list. Linked List 3 Here is one more example of a linked list. This time also, a new item can be added to the beginning or the end. Array-Based List An array-based list is a collection of items where each item can be located using its index. The Minimum and Maximum Values in an Array This series of sample programs shows how to find the highest number in a series. Finding out Whether a Word or Sentence is a Palindrome This is an example code of finding out whether a word or sentence is a palindrome, which is a word or a sentence that reads the same way from left to right or from right to left. Recursions Recursion is the ability for a function to call itself. These are three examples of recursive functions that include calculations for a factorial, a permutation, and a combination. Using an Interface to Declare a Variable Here is an example of an interface, including a class that implements it, and creating an object from it. Rational The rational is a number that is represented by two parts, a numerator and a denominator. Here is an example of producing a rational. Array Resizing This example shows how you can increase the number of items in an array if you have to add values beyond the original size. IList Implementation Here is a class used as an introduction to collections. It creates a class that implements the IList interface. It also adds some other features to the class. Cashier Change This application shows how to assist the cashier of a store figure out how much change to give to a customer. The Minimum and Maximum Values in an Array This series of sample programs shows how to find the highest number in a series. Finding out Whether a Word or Sentence is a Palindrome This is an example code of finding out whether a word or sentence is a palindrome, which is a word or a sentence that reads the same way from left to right or from right to left. Fibonacci Number Copyright © 2008-2011 C# Key Contact