C# Corner

Resources  
  • Generate Unique Number in C#Jan 09, 2000. Generate a unique number using random class and display it on the console.
  • Complex Numbers ClassMar 20, 2001. This small example demonstrates using some of the interesting language elements of the C# language.
  • Line numbering utility in C# and JavaMay 08, 2001. After reading this article Java programmers should be able to decipher and de-jargonize the .NET architecture and relate it with the proposed ECMA standard.
  • Line Numbering Utility in C# and JavaMay 08, 2001. This is the first of the series of programs I wish to write to help myself get a handle on C#.
  • strnicmp equivalent in C#Aug 07, 2001. C# equivalent strnicmp function in C language. It accepts two input strings along with the number of positions of chars to compare.
  • Number to Currency ConvertorSep 03, 2001. The attached Num2Cur.cs file converts number to currency up to 999,999,999,999.9999 i.e (999 billion).
  • Simple Game Developed in C#Sep 03, 2001. This article contains the code for a simple game developed using csharp. This game is all about arranging the shuffled numbers in ascending order.
  • Understanding Structures in C#Oct 23, 2001. A structure in C# is simply a composite data type consisting of a number elements of other types.
  • BitWise Operations in C#Nov 01, 2001. C# has lots of flexibility over manipulating with bits. Before I start explaining about bit wise manipulation I would like to give some inputs on binary operations.
  • Musical Teacher Web ServiceMar 04, 2002. A number of people / organizations have developed web services that are available for free to use.
  • Exocortex.DSP - A C# Complex Number and FFT LibraryApr 08, 2002. Shows how to convert an image from a spatial representation (i.e. picture on the left) to a frequency representation (picture on the right) using a 2D fast Fourier transform.
  • Multithreading Part 3: Thread SynchronizationApr 11, 2002. The .NET framework provides a number of classes and data types that you can use to control the access to shared resources. Thread synchronization refers to the act of shielding against multithreading issues such as data- races, deadlocks and starvation.
  • Gene Expression Programming (GEP) in C# and .NETApr 11, 2002. Gene Expression programming (GEP) is a subset of Genetic Algorithms, except it uses genomes whose strings of numbers represent symbols. The string of symbols can further represent equations, grammars, or logical mappings.
  • Evaluating Neper's Numbers in C#Jul 22, 2002. One of the most interesting number in mathematics is the Neper's number : "e".
  • Validation Server Controls in Web FormsAug 05, 2002. When working with Web applications, developers need to write two separate codes using Java Script and VB Script to validate user inputs.In this article we are going to see, how we can reduce the programmers effort on coding, reducing the execution process time and simplify the code handling and less number of lines in the coding.
  • Working with COBOL Data Groups in C#Sep 11, 2002. In this article we will begin with a C# console application calling a COBOL DLL file. The C# application will pass it a number of occurrences to create in the table (much like a user requesting a specific number of months to report on).
  • More AI...(GEP) Gene Expression Programming in C# and .NETNov 04, 2002. Gene Expression programming (GEP) is a subset of Genetic Algorithms, except it uses genomes whose strings of numbers represent symbols.
  • Consumer/Producer Multithreaded ProgramNov 04, 2002. This is simple multi-threading program that adds and removes elements in an ArrayList. Producer button will creates a producer thread that adds elements in to the ArrayList. The maximum number of elements can be added to this ArrayList are 100 elements and the producer thread has to wait until the consumer thread/threads (creates by pressing consumer button) removes elements from the ArrayList. Then Producer thread starts to add more elements to the ArrayList.
  • Telnet Scripting in C#Jan 28, 2003. This library, written in C#, expands on some telnet code from various other sources, presenting the caller with a number of functions handy for scripting telnet sessions (i.e. SendMessage, SendAndWait, WaitAndSend, WaitFor).
  • Mersenne Twister Random Number GeneratorApr 01, 2003. The attached source code is the C# implementation of the Mersenne Twister algorithm, developed by Makoto Matsumoto and Takuji Nishimura in 1996-1997.
  • In Depth ASP.NET using ADO.NET: Part IIINov 18, 2003. In this article we will discuss a number of ways to retrieve, show, and update data with ASP.NET forms using ADO.NET. Also, we will have a clear idea about the most common server controls in ASP.NET.
  • In Depth ASP.NET using ADO.NET: Part IINov 18, 2003. In this article we will discuss a number of ways to retrieve, show, and update data with ASP.NET forms using ADO.NET. Also, we will have a clear idea about the most common server controls in ASP.NET.
  • In Depth ASP.NET using ADO.NET: Part IVNov 18, 2003. In this tutorial we will discuss a number of ways to retrieve, show, and update data with ASP.NET forms using ADO.NET. Also, we will have a clear idea about the most common server controls in ASP.NET.
  • In Depth ASP.NET using ADO.NET: Part VNov 18, 2003. In this tutorial we will discuss a number of ways to retrieve, show, and update data with ASP.NET forms using ADO.NET. Also, we will have a clear idea about the most common server controls in ASP.NET.
  • Masked TextBox ControlJan 26, 2004. This Masked Edit TextBox intelligent user control enhances the function of TextBox control, which can mask the Date, IP Address, SSN, Phone number, digit, decimal and check the validation, automatically set delimit location.
  • Configuring Publisher Policy FileFeb 20, 2004. Versioning in the Microsoft .NET Framework is managed at the assembly level and is only used when locating strong-named assemblies. By default, the common language runtime loads the assembly whose entire version number matches the version number in the calling assembly's metadata.
  • Combine Multiple Streams in a Single .NET Framework Stream ObjectApr 11, 2004. This article represents a simple Stream class whose data is based on the number of another .NET Framework streams.
  • Evolving Register Network using Genetic Algorithms in C# Jun 23, 2004. Genetic Algorithms are powerful AI tools because they can evolve through trial and error and converge into a solution. In this article we will use genetic algorithms to come up with an analog solution.
  • Evolving Numeric Series using Genetic Algorithms in C#Jul 27, 2004. If you ever browsed around the book store, you'll notice these puzzle books or IQ test books and some of the books contain questions asking you to complete a series of numbers.
  • Remote Data Access LayerAug 24, 2004. The attached source project is a data access layer library and the main idea of developing such a DAL is to separate the database execution from the client/end user and maintain it on the server side, there by reducing the number of direct simultaneous connection to the SQL Server.
  • Generating Random Number and String in C#Nov 19, 2004. The Random class defined in the .NET Framework class library provides functionality to generate random numbers. This article shows you how you can use this class to generate random numbers and strings and even combination of both.
  • Generating Random Number in the ArrayDec 17, 2004. This article shows how to generate random number in an array using C#.
  • Stack in C#Feb 22, 2005. Stacks are one of the common data structures used in the software world, which follows the First In Last Out paradigm. Stacks are used in various mathematical functions like Towers of Hanoi, finding Fibonacci Sequence , Factorial of a number to name a few.
  • Floating-Point in .NET Part I: Concepts and FormatsApr 18, 2005. The first in a three part series, this article introduces the basic concepts of floating-point arithmetic: number formats, accuracy and precision, and round-off error.
  • How do I Generate Random Number in C#?Oct 05, 2005. This code snippet shows how to you generate a random number between a range in C#.
  • AI: Using the Compact Genetic Algorithm to Compute Square Roots in C#Oct 09, 2005. This article describes the Compact Genetic Algorithm (cGA) and how it can be used to calculate the square root of a floating point number.
  • Windows Forms 2.0 MaskedTextBox ControlNov 10, 2005. The MaskedTextBox control is a TextBox with mask feature, which allows you to set the format of the data of TextBox such as zip code, date, time, social security, and phone number.
  • Numeric TextBox for ASP.NETDec 06, 2005. An article on how to allow users to enter only numbers in a TextBox.
  • Generic 'T, K' Database ComponentDec 17, 2005. I have written a C# 2.0 (Visual Studio 2005), Generic <T, K> Database component, The component has simplified the architecture and the implementation by allowing me to keep the number of overloaded methods to a minimum.
  • AJAX Pager controlFeb 01, 2006. After AJAX Repeater control next logical thing was to try and create paging control, a control which renders paging links when you set its properties like page count and page number, I have been using similar control in asp.net page so I decided to implement same thing with JavaScript.
  • Counting Words in C#Feb 14, 2006. This article shows a function that returns number of words rather than number of characters.
  • Solving Polynomial Equations with Complex Roots using Genetic Algorithms in C#Apr 09, 2006. This article features a program in which the user can enter a polynomial equation and it will use GAs to determine the complex roots.
  • Merging data into single table from multiple tables (resultsets)May 15, 2006. This article shows how to reduce the number of trips to improve performance by merging data into single table from multiple tables (resultsets).
  • Random isn't Really Random -- C# Random Number GenerationJul 18, 2006. This article covers overriding the System.Random object in order to produce better random numbers. The project file contains a library of eight commonly used random number generating algorithms, the best of which is the Mersenne Twister algorithm.
  • Crystal report with Dynamic ColumnNov 03, 2006. The objective of this article is to provide a process which can be followed to develop a crystal report with dynamic columns using parameterized column fields and formula fields. Before going for this the developer has to decide the maximum number of columns he/she has to display and as per the no. of columns the size of the paper. The developer can define the size of the paper by selecting Printer Setup in File menu.
  • How to use Genetic Algorithm for Traveling Salesman ProblemDec 20, 2006. TSP is a famous math problem: Given a number of cities and the costs of traveling from any city to any other city, what is the cheapest round-trip route that visits each city exactly once and then returns to the starting city? We use the Genetic Algorithm to solve the TSP problem as a C# programing example .
  • Restricting User InputDec 28, 2006. This article describes an approach to restricting the user’s input to letters only, numbers only, letters or numbers only, and special characters only. The approach is simple to implement and can be used whenever it is necessary to restrict a user’s response to instances where it is necessary to capture information from the user into a form’s text box control.
  • Obtain System Information using WMI CallsApr 06, 2007. This article shall describe an approach to using Windows Management Instrumentation (WMI) calls to obtain system information.
  • XAML Layout using the Panel ClassApr 12, 2007. This article describes how to use the DockPanel element to achieve standard layouts in XAML. While there are a number of interface elements that can be used to position controls in your application, DockPanel provides one of the easiest mechanisms for defining scalable layouts.
  • Serialization in C# and .NETJun 28, 2007. Serialization is a process through which an object's state is transformed into some serial data format, such as XML or binary format.
  • Lotto Program in C#Jul 16, 2007. It is a small Lotto-Program which can help you fill your lotto ticket. It is written in C#.NET 2.0 by using Visual Studio 2005.
  • WEB farm - Load Balancing in Asp.netJul 27, 2007. The concept behind the web farm is that a number of different web sites share pooled resources. They typically share a common front-end dispatcher to perform load control and distribute customer requests. They share the multiple web servers themselves.
  • Mapping with a GPS and C#Sep 05, 2007. This article shall describe a very simple approach to working with a GPS device within the context of a C# application.
  • Distributed Databases in SQL Server 2005.Nov 20, 2007. An increasing number of applications require access to multiple databases located at different sites. A distributed database system allows applications to access database locally and remote transparently.
  • Automatic Reading and Verification of Microsoft Word document in C# using Aspose.WordsJan 17, 2008. Student Course Registration and Verification automatically reads the Roll Number slips in a Microsoft Word document. It parses the Microsoft Word document and then makes corrections if required. It also saves the document at the specified location.
  • How to Generate an XML Document Programmatically-Using System.Xml.XmlWriter: Part IIIJun 26, 2008. In previous articles, I demonstrate how to generate a given xml file using both the DOM “Document Object Model” and the SAX “Serial Access parser for Xml” technologies. In fact, they are very interesting API for handling xml entities or files but the dot net provides us another way to achieve the same goal.
  • Writing Your Own GPS Applications: Part IAug 18, 2008. What is it that GPS applications need to be good enough to use for in-car navigation? Also, how does the process of interpreting GPS data actually work? In this three-part series, I will cover both topics and give you the skills you need to write a commercial-grade GPS application.
  • Assessing Dates of Birth Using C#Aug 20, 2008. This article describes an approach to assessing the difference between a specified beginning and end date. The example was written in the context of comparing a birth date to a specific end date but the same approach could be used to calculate the number of years, months, and days between a specified start and end date.
  • Tracking Clicks by IP Address Using C# and XMLNov 20, 2008. This is a very simple and easy article, which gives an idea for track the IP address and for getting the number of cliks from a particular system.
  • Communicating with Serial Port in C#Dec 08, 2008. This article shows how to communicated with Serial Port using C#.
  • DataList Custom Paging in ASP.Net Using C#Jan 11, 2009. This article describes DataList Paging with Next, Previous, First and Last page access functionality. A numbers list is also displayed for accessing pages faster.
  • Button Control in WPFFeb 02, 2009. This tutorial demonstrates how to create and use a Button control in WPF using XAML and C#.
  • Uploading Multiple Files in ASP.NET 2.0: Part IIMar 27, 2009. In ASP.NET 2.0, the FileUpload control enables the users to upload the files from your web pages. Here, I am going to show you, "how can you upload multiple file on a single button click in ASP.NET 2.0." Here, in the same article I am adding one more functionality, i.e. the user can get the right to upload any number of images by clicking on Add button.
  • Project Management Schedule Management FAQ seriesApr 13, 2009. In this article we will run through a quick FAQ for schedule management of software projects.
  • Web Paging Navigation ControlMay 18, 2009. WebPagingControl navigation control contain page numbers ,next,back,first,last to navigate in datalist the project cotains web page to test the control working with ajax
  • C# 4.0: Named ParametersJun 15, 2009. C# 4.0 has introduced a number of interesting features which includes Optional Parameters, Default Values, and Named Parameters.
  • How to improve your LINQ query performance by 5 X times ?Jul 17, 2009. LINQ has been criticized by many early adopters for its performance issues. Well if you are just going to drag and drop using DBML code generator I am sure you will land up in to mess. Try doing this make a simple LINQ to SQL project using DBML and see your SQL profiler, I am sure you will never like to touch DBML code generator again. In this article we will first look in to how LINQ queries are executed, and then we will touch base on how compiled LINQ queries can help us improve our application performance at least 5 times. My numbers can be 10% up and down as I had come to that figure using my environmental situations.
  • Page navigation with values in SilverLightJul 17, 2009. This article will show, How to navigate between two SilverLight pages in silverLight2.0. This article is giving step by step illustration on how to navigate and pass values between two SilverLight pages. In this SilverLight application user will input her name and two numbers in one Silverlight page and user will get greeting message and summation of input number in other SilverLight page.
  • Rows.Count, Column.Count and IEnumerator using ADO.NET with C# and Database ServerJul 29, 2009. In this article I will explain you how to make a SQL database connection and show information in data grid. Count the number of rows and columns in the table and show the records in text boxes using IEnumerator interface.
  • Creating a Silverlight Game-Part IAug 17, 2009. Let's take a simple example of the Number Puzzle game to demonstrate this.
  • Creating a Silverlight Game-Part IIAug 18, 2009. In this second part of the article series, we will see how to design the UI for the game.
  • Retrieving Motherboard Serial Number via WMIAug 24, 2009. Learn how to retrieve Motherboard serial number and other related information via Windows Management Instrumentation (WMI) in .NET.
  • Refactoring: Magic NumbersSep 14, 2009. Learn how to improve your code using Magic Numbers refactoring.
  • Generating Random Numbers Using the System.Random Class in C# Mar 01, 2010. In this article I will explain you about generating Random Numbers Using the System.Random Class in C#.
  • Complex Class in System.Numerics namespace (Framework 4.0)Mar 19, 2010. In this article I will explain you about, how to manipulate Complex numbers by using pretty much cool feature introduced in .net framework 4.0 with System.Numerics namespace.
  • Count the number of characters in a textboxApr 07, 2010. In this article we will see how to implement in JavaScript to count the number of characters in a textbox.
  • Arithmetic Operations on Numbers Bigger than Permissible LimitsApr 08, 2010. In this article I will show you about using BigInteger Class of the framework 4.0.
  • NumericUpDown in C#Jun 22, 2010. A NumericUpDown control allows users to provide a spin (up/down) interface to move through pre-defined numbers using up and down arrows. In this tutorial, we will see how to create a NumericUpDown control at design-time as well as at run-time.
  • Radio Button in C#Jul 20, 2010. A RadioButton control provides a round interface to select one option from a number of options. Radio buttons are usually placed in a group on a container control such as a Panel or a GroupBox and one of them is selected.
  • Random Number Generation and Windows Forms Encryption via C# Parallel ProgrammingSep 07, 2010. An article that describes Encryption and Random Number Generation in C# TPL Parallel code.
  • Finding Odd numbers using LINQ in C#Oct 05, 2010. In this article we will see how to find odd numbers from a range of number using LINQ in C#.
  • Hits Counter for SharePoint Site (Analytics)Oct 15, 2010. In this article I am showing you a very simple way to show the number of hits that come to a SharePoint site.
  • RequiredSelection Validation ControlNov 04, 2010. Here I m showing a control which will validate minimum and maximum number of options from a CheckedListBox control.
  • Chapter 2: Multi-Server Administration Nov 23, 2010. Over the years, an increasing number of organizations have turned to Microsoft SQL Server because it embodies the Microsoft Data Platform vision to help organizations manage any data, at any place, and at any time. The biggest challenges organizations face with this increase of SQL Server installations have been in management.
  • SQL SERVER - DenaliDec 01, 2010. In this article we are going to look into the most awaited cool features called Sequence Number generation.
  • Extended prime number finder AlgorithmDec 20, 2010. I wrote this article to explain how to calculate large prime numbers using this struct.
  • Calculate the Working Days Between Two Given Days in C#Jan 26, 2011. In this article we will discuss how to calculate the number of working days between the two given days in C#.
  • Palindrome in C# GUIMar 13, 2011. Software to check weather the word ,sentence,number are same when read from backward and forward eg Racecar,malayalam etc uses array ,first index and last index this is the one and only GUI version of palindrome available on-line checking word and sentences
  • Using The Complex Type to Solve Quadratic EquationsMar 14, 2011. One of the more interesting types introduced in .NET Framework 4.0 is the Complex structure which models the mathematical entity known as a 'complex number'. This is a number of the form a + bi where i represents the square root of -1.
  • Simulating Binary Literals in C#Mar 19, 2011. How to use integers instead of strings so that we can easily do bit and normal arithmetic with binary numbers.
  • Converting Numbers to Words in C#Mar 24, 2011. This article shows how to convert a number to words.
  • WCF Programming MethodsMar 28, 2011. WCF supports a number of different methods of programming. This article discusses the three common methods of developing WCF services.
  • Calling Unmanaged Functions Which Take a Variable Number of Arguments From C#Mar 29, 2011. Many C# programmers are familiar with the Platform Invoke mechanism (using the DllImport attribute) for calling unmanaged functions from C#.
  • How do you convert numbers to wordsMar 29, 2011. There are many solutions to converting numbers to words, the best one is a matter of choice, the bigger the number, the more you have to deal with, or do you!
  • Some Cool and Usefull Tips and Tricks For GridViewApr 11, 2011. Here are some cool and usefull tips and tricks for GridView in ASP.NET.
  • Dealing With Ranges of Numbers in C#Apr 20, 2011. The .NET Framework does have the Enumerable.Range() method, which is used mainly in conjunction with LINQ queries.
  • Converting Numbers to Words using the Indian Numbering SystemMay 22, 2011. In this article, I'd like to present a similar program using the Indian numbering system. This system differs from the US/UK systems in that it doesn't use 'millions' but instead uses 'lakhs' and 'crores' to represent multiples of 100 thousand and 10 million respectively.
  • Business Types in LightSwitch Beta 2May 23, 2011. In this article we shall discuss Business Types in LightSwitch Beta 2.
  • HTTP response using the GetResponseHeader () class HttpWebResponseJun 05, 2011. The ContentLength property of the HttpWebResponse class can be used when we want to get the size of an HTTP response, the number of bytes contained in the response.
  • Data Types in F#Jul 04, 2011. In this article you will learn about the mutable and immutable data types of F#. If you want to understand that then take a Quick review.

About Serial-Numbers

NA

SPONSORED BY

Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.
Download Free eBooks