C# Corner

Resources  
  • Binary Search Using ArrayList Jan 10, 2000. The ArrayList class provide binary search algorithm and more...
  • C# IndexerJan 15, 2000. An indexer is a member that enables an object to be indexed in the same way as an array.
  • ADO.NET DataSet ProgrammingMar 20, 2001. A sample project shows you how to add, edit, delete, navigate, save records in a database using DataSet.
  • Assemblies : The Ins and Out : Part IApr 13, 2001. In Part 1, I will cover what exactly an assembly is, and what an assembly contains.
  • Assemblies : The Ins and Out : Part IIApr 16, 2001. In this part, I will discuss both Private and Shared assemblies and how to create a "Shared Assembly".
  • Assemblies : The Ins and Out : Part IIIApr 20, 2001. In this part I will discuss in more detail than Part 2, the available utilities for manipulating assemblies.
  • Color GuideJun 11, 2001. This Program will generate all the colors that are supported in C# according to the Name.
  • Exception HandlingJun 12, 2001. Exceptions in C# provide a structured, and type-safe way of handling both system level and application level error conditions. The exception mechanism in C# is very similar to that of C++, with a few important differences.
  • Exception HandlingJul 21, 2001. Exceptions in C# provide a structured, and type-safe way of handling both system level and application level error conditions. The exception mechanism in C# is very similar to that of C++, with a few important differences.
  • Get the Place Game in C#Aug 14, 2001. I have written a game in C# called Get the Place.
  • Calculator ExampleAug 14, 2001. Sample program shows you how to create a calculator.
  • Displaying Exception InformationAug 21, 2001. This is a simple utility to display exceptions. Each exception in the chain is added to an ArrayList and displayed in reverse order in a ListView control.
  • A variety of Chart EnginesSep 07, 2001. The original code came from Scott Guthrie’s chart engine example. The differences from original code.
  • using Array Class and IEnumeration in C#Sep 14, 2001. This article illustrates the usage of Array class and IEnumerator. Array class Provides methods for creating, manipulating, searching and sorting arrays, thereby serving as the base class for all arrays in the common language runtime.
  • IComparable: Under the HoodSep 21, 2001. We now calling Array.Sort() on C# Types such as int, char, string will automatically do sorting based on that type.
  • Method Parameters in C#Oct 15, 2001. This article describes different method parameters such as value parameters, reference parameters, output parameters, and parameter arrays.
  • Exception Handling in C#Oct 17, 2001. Exception handling is a builtin mechanism in .NET framework to detect and handle run time errors.
  • Pointers in C#Oct 25, 2001. C# also supports pointers in a limited extent. A pointer is nothing but a variable that holds the memory address of another type. But in C# pointer can only be declared to hold the memory address of value types and arrays.
  • Implementing Stacks in C#Nov 06, 2001. With the help of C# we can also implement ADT (Abstract Data Types) with little effort. An example of ADT is a simple stack of integers.
  • Exceptions and Exception StackNov 16, 2001. The purpose of this tutorial is to explain firstly how you would go about creating your own set of exceptions to trap error conditions that could occur in your code or library, for your own benefit or for the benefit of another developer using your library. The second lesson is on how the C# exception stack works, and how you can use it to catch all types of exceptions.
  • Understanding the System.Buffer ClassDec 13, 2001. Before we try out something with Buffer class lets understand Buffer class and its Members.
  • Returning an Array Listing using Remote Procedure CallDec 26, 2001. In this article we will create a Web Service that will return an ArrayList of students.
  • Exception Handling in C#Jan 03, 2002. In C# Exception is a class in the system namespace. An object of an exception is that describe the exceptional conditions occur in a code That means, we are catching an exception, creating an object of it, and then throwing it. C# supports exceptions in a very much the same way as Java and C++.
  • Hangman Program Using C#Jan 19, 2002. Hangman was created to illustrate several features of C# including GDI+, string manipulation, array processing, using properties, as well as simple creation of objects.
  • Yahtzee Program Using C#: Part IIJan 31, 2002. This is an update of the Yahtzee program for VS 2005. Included in this version is a Game Reset and a High Score Tracker. The Top Ten High Scores are tracked using an Array with sortable components. In this article we will talk about the IComparable interface used to make an object stored in an array sortable.
  • C#RIS : Tetris Game in C#Feb 14, 2002. I have written a Tetris clone that demonstrates how to use off-screen graphics buffering for smooth animation and utilizes a multi-dimensional array approach to designing a game grid. The classes are largely self-explanatory and the techniques are documented in code well enough to explain what is going on.
  • Poorman's Installation program in C# and .NETApr 08, 2002. Installation programs can be quite expensive these days. Although programs such as Wise and InstallShield have fantastic features and are fairly comprehensive, sometimes you just want to do the easy installation of copying and pasting files into a directory and perhaps placing a shortcut in the start menu.
  • Unit Conversion Tool for Pocket PC with Compact FrameworkMay 22, 2002. I have created a Unit conversion tool to calculate conversion from 16 different types.
  • Custom Error Handling in ASP.NETMay 30, 2002. Structured exception handling is a fundamental part of the CLR and provides .Net programmers a great way of managing errors. In addition to CLR exception system, ASP.Net also provides ways of handling errors.
  • Redhotqlue C# ArrayObjectJun 20, 2002. Unlike Visual Basic the C# language does not provide a standard mechanism for re-dimensioning (resizing) arrays. This component provides that additional functionality for arrays created in C#.
  • Working with Arrays in C#Jul 09, 2002. This tutorial discusses array programming in C# and .NET. It starts with the discussion of simple arrays and then delves into more complex topics such as jagged and multi-dimensional arrays. In the end, it discusses the Array class and it's methods for searching and sorting an array's items.
  • Programming C#: Working with Arrays in .NETJul 09, 2002. This article concentrates on arrays in .NET and how you can work with arrays using C# language. Article also covers the Arrays class and its method, which can be used to sort, search, get, and set an array items.
  • A Virtual Photo Album in C# and .NETAug 05, 2002. This album allows you to drag your images directly from Windows Explorer into the spot you want your picture to occupy. You can also edit the captions by clicking on the labels under the pictures.
  • Extracting Modules and Component(RSAParameter) from X509Certificate PublicKeyNov 04, 2002. In some applications, it might be necessary to extract the modulus and exponent from the X509Certificate PublicKey. The X509Certificate.GetPublicKey() returns a byte array that contains the ASN.1 Encoding information along with the modulus and exponent as described in the RFC2459.
  • Sorting using MultithreadingNov 13, 2002. This is simple multithreading application that sort integers values in an array.
  • The "ins" and "outs" of Using Stored Procedures in C#Jan 27, 2003. This article reviews the creation of stored procedures with parameters using the Visual Studio IDE.
  • Basics of Extending Your Working Environment in Visual StudioApr 10, 2003. All of us have used Macros in Microsoft Office and Add-ins in Visual Studio 6 and I am very sure all of us have been impressed as well by their power to control their own working environment.
  • Iterations and Performance in .NETApr 15, 2003. I’ve been implementing numerical libraries in .NET and have come to some conclusions about iteration performance.
  • Custom Exceptions using Microsoft Exception Management Application BlockSep 02, 2003. This article shows you how to use Microsoft Exception Management Application Block to write custom exceptions.
  • Hello World in different StylesJan 09, 2004. I've attempted to write the traditional 'Hello World' in different styles. This explores the different possibilities of addressing a problem - 'Hello World' with different features of C# language and .NET framework.
  • Oracle Data Provider for .NET : Part VIFeb 20, 2004. Oracle Data Provider for .NET (ODP.NET) is an implementation of a data provider for the Oracle database. ODP.NET uses Oracle native APIs to offer fast and reliable access to Oracle data and features from any .NET application.
  • Populate SQL Servers and Databases dynamically in C#May 27, 2004. The attached source code is a class that provides methods to populate an array with the available SQL Server and databases on your network dynamically.
  • Getting Started With Exception Handling in C#Jul 14, 2004. This article explores exception handling mechanisms in C#, including an explanation of exceptions and why we need to catch exceptions.
  • Logging Errors in a XML FileAug 26, 2004. Error handling and logging errors at a common place is something, which is required in every piece of code you write. The attached source code is an error logger class that I've used in all of my applications. This class writes errors to XML files.
  • Talk to SharePoint through its web servicesDec 09, 2004. Microsoft Office 2003 is very tightly integrated with SharePoint by utilizing its web services. Windows SharePoint Services comes with sixteen different web services. SharePoint Portal Server 2003 supports an additional five web services. The web services provided by SharePoint do provide a vast array of features.
  • Generating Random Number in the ArrayDec 17, 2004. This article shows how to generate random number in an array using C#.
  • How Count Sort worksJan 15, 2005. Count Sort is Linear Sorting algorithm which sorts elements in O(n) time , the other linear sorts include Bucket and Radix sorts.
  • Will swap work if C# Manipulates Objects by Reference?Feb 15, 2005. C# does manipulate objects by reference, and all object variables are references. On the other hand, C# does not pass method arguments by reference; it passes them by value. Thus, a regular swap method will not work!
  • Best Practices of Exception ManagementMar 08, 2005. Exception management is one of the key area for all kinds of application development .You should adopt an appropriate strategy for exception management to build high quality and robust application .It is a very powerful concept and makes the development work very easy if its used efficiently.
  • Creating simple Add-in for Visual Studio.NETMar 16, 2005. An add-in is a tool that you create programmatically by using objects, methods, properties, collections in .NET's extensibility model. This compiled application enables you to automate the difficult and tedious tasks within the visual studio integrated development environment (IDE).
  • Publishing Exception in SPS Web PartsApr 11, 2005. This article tells the safe way of publishing exceptions using Microsoft Exception Management Application Blocks from WebPart.
  • Custom Exception Handling in C#May 17, 2005. This article discusses the implementation of Custom Exception Handling using the existing features of C# .Net.
  • Custom Error Handling Using ASP.NETJul 07, 2005. Sometimes in your application, you may want to show some decent error messages other than red error messages and some message when page is not found or server is busy. We will see custom error message handling mechanism in this article using ASP.NET.
  • Convert a Comma Delimited String to an Array in C#Aug 01, 2005. This article shows how to convert an array to a comma delimited string in C#.
  • How do I use Memory Stream in C# Oct 27, 2005. This article shows how to use memory stream to read byte[] array and can use to write some file in memory.
  • Better Exception Handling in Visual Studio 2005Nov 16, 2005. With many new cool features, components, controls, and tools, Visual Studio 2005 definitively is a winner. In this article, I discuss the new exception handling dialog in Visual Studio 2005.
  • Designing Sortable Collections using IComparableNov 21, 2005. If you are dealing with collection of objects, there are times when you need to sort the object collection. In this article, I will discuss how to use IComparable interface to design sortable arrays.
  • Auditing and Logging ExceptionsFeb 01, 2006. This article shows how to handle a SQL Server error condition by using the SQL Server .NET Framework data provider.
  • Exception ManagementFeb 02, 2006. Correct exception handling in your Web pages prevents sensitive exception details from being revealed to the user. The following recommendations apply to ASP.NET Web pages and controls.
  • Writing C# 2.0 Unsafe CodeFeb 23, 2006. We will see that C# allows suspending the verification of code by the CLR to allow developers to directly access memory using pointers.
  • Customized Exception Handling Using Resource FileMar 03, 2006. A good exception handling should care about user as well as developer. i.e. developer can easily locate the exception entry point, may be a function or any where in a vast project, and fix it as soon as possible. So in this writing I tried some exception handlings which will consider both user and developer.
  • Use Customized IndexersMar 14, 2006. Many of you are aware of indexers and its properties. For those unaware of it want to know that indexers are used to represent objects using indexes or even using keys. I.e. we can represent an object of a class by the way an array is using.
  • Apply Object Serialization in Real Life SituationMar 30, 2006. Object serialization is a process of streaming an object into a byte array. This article explains the object serialization process using a real world example.
  • The request failed with HTTP status 401: Access DeniedJun 30, 2006. An unhandled exception occurred during the execution of the current Web request. Please review the stack trace for more information about the error and where it originated in the code.
  • The request failed with HTTP Status 405: Method Not Allowed.Jul 04, 2006. PDSTest.NET Exception Occurred while processing the request. The request failed with HTTP Status 405: Method Not Allowed
  • Six Java features C# developers will kill for...Jul 06, 2006. Not everything on the .NET framework is perfect, and Microsoft still has more improvements to implement. This time we will look at six features available to Java developers but unfortunally absent from C#.
  • Serializing and Deserializing XML StringJul 20, 2006. In this article we will see how we can serialize a xml sring into an object and vice versa. You can serialize your object to a byte array and can deSerialize the byte array into an object.
  • Using Predicates over foreach in ArraysOct 24, 2006. We generally use foreach blocks to iterate through Arrays n Lists in order to operate on them which not only makes our code long n confusing but also makes us compromise on performance. The solution to this lies in Predicates...
  • Bind Objects to a DataGridView ControlFeb 12, 2007. This article describes a simple approach to displaying object property data within a data grid view control.
  • Exception Handling in VB.NETJun 25, 2007. Exception handling is crucial since the robustness of software depends on how effectively a program deals with exceptions.
  • 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.
  • Connection PoolingAug 11, 2007. While performing any database activity it is necessary that every single connection need to be closed, but in case your application throws some exception in that case our connection wont’ get closed. And you will get error “Cannot open connection, it is already open” In this article I will be discussing what is connection pooling? Why connection polling & how we can enable connection pooling etc.
  • Free Book: C# Programming for BeginnersAug 21, 2007. In this book, you will learn how to write and compile C# programs, understand C# syntaxes, data types, control flow, classes and their members, interfaces, arrays, and exception handling. After completing this book, you should have a clear understanding of the purpose of C# language, it’s usages, and how to write C# programs.
  • Introduction to Building a Plug-In Architecture Using C#Sep 10, 2007. In this article we'll take another look at how we can use the state pattern to build a plug-in architecture that will allow us to change the behavior of our application by placing differnt plug-ins into a folder.
  • Best Practices for handling exceptionsSep 18, 2007. This article shall explain some of the best practices when you deal with exceptions.
  • Exception Handling in WCF using Fault ContractJan 03, 2008. This article demonstrates how to get error information from a service to a client using fault contract in WCF.
  • How C# is Different From JavaJan 17, 2008. This article describes the various differences between C# and Java.
  • Call any stored procedure which take input parameters and return output parametersFeb 01, 2008. This one generic function can call any Stored Prodedure which take input parameters and return output parameters with the help of two-dimensions array. This is very helpful specially when you designing n-tier application.
  • Power of Yield, Generics and Array in C#Jul 14, 2008. This article tells you an additiional way to get reverse processing of array with help of generics and yield.
  • Exception and error handling in enterprise applicationsJul 31, 2008. In this article, I try to cover the key principles and the main techniques of exception and error handling with examples in SQL Server, Oracle and Microsoft .NET.
  • Introduction to Visual Studio Add-insMar 03, 2009. This article explains about Visual Studio 2008 Add-ins.
  • Introduction to Interfacing Win Forms with VS Add-insMar 04, 2009. This article explains about integration of Windows Forms with Visual Studio Add-ins.
  • Exception handling using Enterprise application block in 6 StepsMar 20, 2009. Exception handling is one of the most important tasks in any application. Many applications either do not handle applications or they handle it in an adhoc manner. In this section we will see how we can use the readymade exception handling block so that we do not need to code and build error handling routines from scratch.
  • Paging and Sorting ListViews with ASP.NET MVC and jQueryMar 23, 2009. This article provides a simple example of using jQuery along with the jQuery tablesorter and tablesorter.pager plug-ins to provide sorting and paging support for a listview within the context of an ASP.NET MVC application. JQuery has partnered with Microsoft and is now integrated within the IDE to include the availability of intellisense support.
  • Handling complex data types returned by Web services using JSON and jQuery in Microsoft.NET and Oracle ASApr 17, 2009. In this article, I will illustrate how to invoke an Ajax-enabled Web service which returns a complex data type (an array of products) from a Web service in Visual Studio.NET and JDeveloper.
  • Rectifying MACHINE CHECK EXCEPTION Error Message in Windows XPMay 18, 2009. A STOP error message in Windows XP is typically caused after your computer encounters a serious system error. Two major consequences that you might face after the occurrence of a STOP error can be unbootable hard drive and data inaccessibility.
  • Arrays in C#Jun 19, 2009. This tutorial describes arrays and shows how they work in C# and .NET.
  • Jagged Arrays in C#.NETJun 22, 2009. In this article I will explain about jagged array in C#.NET
  • Exception Handling in C#Jul 08, 2009. This article explains you about exceptional handling in C#. How to use try, catch, finally block to handle exception handling
  • Indexers and PropertiesJul 13, 2009. Indexers and Properties the new features in C#, also known as Smart arrays and Smart fields.This article describes the detailed features of Indexers and Properties
  • Handling Service Side Exception and Faulty Channel at Client Side in WCFAug 04, 2009. In this article, I will show different approach to deal with service side exception and channel fault at client side. I will do a comparison study between various approaches and I will provide best approach also.
  • Exception Handling in C#Aug 19, 2009. In this article we will see exception handling technique in C#.
  • Guide to Improving Code Performance in .NET: Part IISep 01, 2009. This article explains about better Exception Handling practices in C#.
  • Exception handling in C#Sep 14, 2009. This article explains about the Exception handling in C# with code example.
  • Binding an Enum to a ComboBoxOct 06, 2009. The following code snippet shows how to bind an enumeration to a ComboBox in WPF or Windows Forms using C#.
  • Creating a Stack-Based ArrayOct 08, 2009. - Learn how to create high-performance stack-based short-lived arrays. - Learn how to work with array pointers. - Learn how to copy arrays many times faster.
  • Collections in C#: ArrayList and ArraysOct 10, 2009. This article explains the Collection classes in .NET. This first part explains the ArrayList class, advantages, disadvantages and differences with Array.
  • AccountPlusOct 13, 2009. AccountPlus is an application which can be used for shared account/expense management with proper reporting and general analytics.
  • Arrays are Structurally equatable in .NET 4.0Oct 13, 2009. This article discusses expansion of arrays in .NET 4.0.
  • Types in C# Nov 13, 2009. In this article I will explain about data types in C#.

About Exception-in-Array

NA

SPONSORED BY

C# Corner Chandigarh DevCon16
Chandigarh DevCon16 is a one-day Developer Conference where programmers, technologists, authors, and members meet, demonstrate, plan, and hang out.
Download Free eBooks