C# Corner

Resources  
  • Effective C#: Working with StringsMar 12, 2001. Using string might degrade the performance of your application. This article explains about what precautions you should take when you are going to use strings in your application.
  • Compilation and Runtime Execution of a C-Sharp ProgramApr 10, 2001. C-Sharp (C#) is a strongly typed object-oriented programming language designed to give optimum composition of simplicity, expressiveness and performance.
  • Quote ResponderMay 09, 2001. The program will periodically check your mail for incoming email requests for a stock quote.
  • Web Scanner Part-1Jun 01, 2001. My favourite technology web site is updated throughout the day. I thought it would be nice to have a program that checked every 30 minutes for updates and told me what stories were there.
  • Synchronization in Parallel threadsJul 02, 2001. The Threads makes us able to run multitasks at a time. In fact Computers (John von Neumann Architecture) don't execute the tasks parallel .The OS gives threads permission (depend on thread priority) to work on CPU. The sufficient degree of parallelism keeps the CPU busy and it is efficient.
  • Working with Windows Forms ControlsOct 12, 2001. This program shows you how to use Windows Forms controls such as Check Boxes, Radio Buttons, and Combo Box.
  • Checked ListBox Control In C#Oct 18, 2001. The following source code will provide the use of CheckedListBox Control In C#.
  • Email Notifier with Microsoft Agent--- GENIENov 16, 2001. Email notifier with Microsoft Agent is a TCP/IP application that notifies the user if there is email in the user's email server.
  • Playing with DataGrid ControlJan 08, 2002. The article gives a user the overview to show the importance and versatility of the DATAGRID control.
  • Boxing and Performance of CollectionsMar 14, 2002. In this article, I will compare some performance issues of values and references types during boxing and unboxing operations.
  • Low Cost Credit Card VerificationMar 15, 2002. The last digit of a credit card is a check digit that is used to detect keystroke errors when a check card is entered into a computer.
  • .NET Remoting: The Interface ApproachMar 26, 2002. .NET Remoting provides a powerful and high performance way of working with remote objects. Architecturally, .NET Remote objects are a perfect fit for accessing resources across the network without the overhead posed by SOAP based Web services. .NET Remoting is easier to use than Java's RMI, but definitely more difficult than creating a WebService. In this article, we will create a remote object, and access this object using the Interface.
  • .NET Remoting: The Simple ApproachMar 26, 2002. .NET Remoting provides a powerful and high performance way of working with remote objects. Architecturally, .NET Remote objects are a perfect fit for accessing resources across the network without the overhead posed by SOAP based Web services.
  • Asteroids in C#Apr 04, 2002. As my first experiment in a game design, rather than using a DirectX wrapper, I decided to explore the functionality of GDI+. GDI+ has lot of nice features to offer but performance wise it is slow. So GDI+ may not be a good idea to develop practical fast paced games. This game also includes sounds.
  • XML Schema ValidatorApr 16, 2002. The XML Schema Validator checks if a given XML document is well formed and has a valid schema model.
  • Performance Comparison of XslTransform InputsMay 02, 2002. To transform XML into HTML for use on a Web site or to transform it into a document that contains only the fields required you could use the XSLTransform class (found in the System.Xml.Xsl namespace).
  • Performance Comparison of XslTransform InputsMay 02, 2002. To transform XML into HTML for use on a Web site or to transform it into a document that contains only the fields required you could use the XSLTransform class (found in the System.Xml.Xsl namespace).
  • Nemesis-7rc1 (Codename Deviate)May 13, 2002. Nemesis-7 is a full-screen 2D shoot’em up that makes use of the DirectInput, DirectSound and DirectDraw interfaces from DirectX. The player controls a spaceship which he uses to duel the computer opponent. I implemented some artificial intelligence to make the CPU play more human.
  • .NET Performance Counters, Part 1: Predefined CLR Performance CountersMay 13, 2002. In this article, I will describe what a performance counter is and introduce you to the predefined counters that you can use to monitor the state of the CLR while your applications run.
  • Check Your Mobile Device CapabilitiesMay 16, 2002. This sample is a utility to determine the capabilities of a Mobile Device. The MobileCapabilities class available in the Mobile Internet Toolkit provides a list of useful information on the client device.
  • Spell Check Web ServiceMay 31, 2002. In this example we will create a Web Service which provides spell check functionality.
  • ADO.NET From Windows DNA's PerspectiveJun 12, 2002. Windows DNA is a framework to build multi-tier, high performance, scalable distributed applications over the network. This article takes a Windows DNA perspective and compares how ADO.NET fits in Windows DNA.
  • Nemesis-7rc1 ( Codename Deviate)Jun 13, 2002. Nemesis-7 is a full-screen 2D shoot’em up that makes use of the DirectInput, DirectSound and DirectDraw interfaces from DirectX. The player controls a spaceship which he uses to duel the computer opponent. I implemented some artificial intelligence to make the CPU play more human.
  • SpellCheck.NET Parser in C#Jun 25, 2002. SpellCheck.net is free online spell checking site. Whenever I need to check my spelling I visit this site , so I decided to write a parser for this site.
  • Using Active DirectoryJul 31, 2002. This sample code can sense current context in Active Directory, checks for the existence of attributes, provides a list of all the attributes in Active Directory and can add a user to Active Directory.
  • TWINXBASE ServiceSep 09, 2002. This service scans in a directory by using FileWatcher component and when a file arrives, then the service will check the extension of the file, if the file has the extension .DBX then it will read the contents of the file and communicate with the database (C:\FILESERVICE\DB\MyDB.mdb) and insert / update / delete the records in the database -table.
  • Remoting Calls RecommendationsSep 19, 2002. The goal of this article is not to describe remoting technology in details. It is more focused at the practical design and implementation mistakes during development process concerning garbage collection and performance.
  • Remoting Calls RecommendationSep 19, 2002. The goal of this article is not to describe remoting technology in details. It is more focused at the practical design and implementation mistakes development process concerning garbage collection and performance.
  • Single Instance Control ComponentSep 23, 2002. This article is on a single Instance control component which checks whether any instance of your application is running on the System.
  • Working with Win32 API in .NETNov 21, 2002. Windows exposes lots of functionality in the form of Win32 API. Using these API you can perform direct operation in windows, which increases performance of your application.
  • Caution When Using SetParentRow of a DataSetJan 13, 2003. I had a serious performance killer when using SetParentRow in the creation of a DataSet in ADO.NET.
  • Mail Checker 1.0Jan 16, 2003. In this article, author shows how to create a program to check your IMAP mail.
  • Regular Expression ValidatorMar 14, 2003. This tool is useful when you are creating Regular Expression. This tool will help you in checking syntax of the regular expression typed in.
  • Iterations and Performance in .NETApr 15, 2003. I’ve been implementing numerical libraries in .NET and have come to some conclusions about iteration performance.
  • How to Detect a Dialup Connection?May 15, 2003. In the article we'll see how to check connectivity with internet using VB.NET.
  • DataGrid and CheckBox ControlsJun 17, 2003. How to have checkbox that is checked or unchecked depending on a field value stored in the Database, and then allow the user to click on it and record the new checkbox state in the database.
  • Boxing and Unboxing of Value Types : What You Need to Know?Jul 21, 2003. Programmers new to C# can encounter less than ideal performance and even unexpected results due to boxing and unboxing of value types.
  • Check Internet ConnectionAug 25, 2003. How to check if your computer is connected to the internet with C#. It's much more easier that other tutorials I've seen in other sites.
  • 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.
  • Debugging a Compiled ComponentFeb 02, 2004. After an assembly is compiled into a dll in a release mode, it is very difficult to gather information from it such as runtime performance, parameters values, etc.
  • Report Generation in .NETFeb 27, 2004. Report generation is an integral part of enterprise application development. Choosing the right kind of report generation strategy decides the success of the application in terms of cost and performance. The white paper discusses some of the key factors that need to be considered when architecting reporting systems in .NET and C#.
  • Understanding .NET Framework at a glanceMay 05, 2004. In this article we are going to look at Microsoft .NET Framework. This is the newly established software development environment which helps developers to develop applications quickly and gives optimum, efficient, scalable, performance oriented applications in different languages like Visual Basic .NET, C#, ASP .NET, and Jscript .NET.
  • Microsoft Application Center TestOct 13, 2004. Application Center Test (ACT) stress tests Web servers and analyze performance and scalability problems of Web applications. ACT simulates a large group of users by opening multiple connections to the server and rapidly sending HTTP requests. It also supports several other authentication schemes and the SSL protocol, making it ideal for testing personalized and secure sites.
  • ClickMania GameDec 21, 2004. This is an old game, first implemented in 1996 or so... It has a great addictive power. You will quickly find out the rules. I used the winmm.dll library for playing sounds, the picturebox.Paint event to draw bitmaps in a Picturebox and a recursive function to check the balls next to each other for the colors.
  • Performance Improvement in ASP.NET Using CachingFeb 01, 2005. ASP.NET provides caching at several levels for you to leverage and improve the responsiveness of your application by storing the page output or application data across HTTP requests and reuse it. This allows the web server to take advantage of processing the request without recreating the information and thus saving time and resources.
  • Measure Web Service Performance using NetMonMay 03, 2005. This article gives an idea how to identify the performance of web method calls by using NETMon tool.
  • Checked List Box Sample in C#May 31, 2005. This example shows how to use CheckedListBox control in C# and Windows Forms.
  • Adding & Retrieving items from listbox and check list boxJun 02, 2005. The attached source code shows how to add and retrieve items of Windows Forms ListBox and CheckListBox controls.
  • Accessing Registry using ASP.NETJul 08, 2005. In this article, we will see how to access the registry using ASP.NET. We will see one simple example to check where Visual Studio installed on our machine.
  • New Dataset features in ADO.Net 2.0Aug 22, 2005. ADO.NET class libraries are used for accessing data from a wide range of data sources. One of the best features in ADO.Net is DataSet.Even though it was an exciting feature, performance was a concern with DataSet. Lets look some changes made to DataSet in ADO.Net in this article.
  • Glue IIS with Business Logical Tier using Batching, Asynchrony, and Parallel ComputationOct 26, 2005. A great and unusual way to boost your web application performance and scalability five times or more.
  • Navigating Data Grid using Client ScriptingNov 10, 2005. It's very common practice to use the Data Grid to present data over web pages. Though the Data Grid is provides the richer UI presentation if not coded and handled effectively it can have great performance issues. This article gives the code sample for navigating the data grid using the Client Scripting (thereby can be used for lots of validation before doing the Post Back to the server) and minimizing the round trip to server
  • How to Select all Checkbox when Header Checkbox is SelectedDec 30, 2005. Here I have provided the code using javascript to check/uncheck all checkboxes when header checkbox is checked. I recommend JAVA Script because its executed at client side and saves request Round-Trip time.
  • A Loader and Game Pad for Playing SudokuJan 13, 2006. This C# application will allow you to load existing Sudoku games, manually create your own games, save, print, and check Sudoku puzzles, and more. The article also describes how to use the XmlDocument class to persist Sudoku templates and games in progress.
  • C# Heap(ing) Vs Stack(ing) in .NET: Part IJan 14, 2006. Even though with the .NET framework we don't have to actively worry about memory management and garbage collection (GC), we still have to keep memory management and GC in mind in order to optimize the performance of our applications.
  • Using Management Objects to check Online PrintersJan 20, 2006. This article shows to check online printers using management objects.
  • The C# Value Type and BoxingFeb 17, 2006. Even though with the .NET framework we don't have to actively worry about memory management and garbage collection (GC), we still have to keep memory management and GC in mind in order to optimize the performance of our applications. One of the things we need to be aware of is how the Common Language Runtime (CLR) deals with references to value types.
  • Tips to Improve the Performance of ASP.Net ApplicationMay 12, 2006. This article features tips to improve the performance of ASP.Net Application
  • 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).
  • Best Practices of Compact FrameworkMay 17, 2006. This shares a few recommendations for use in our day to day development of Compact Framework applications.
  • Display Process list and Processor Performance in C#Jun 14, 2006. This article shows how to display Processes list and performance of processor exactly.
  • Streamlining Web Application PerformanceJun 29, 2006. This article discusses some performance tuning tips for those who use ASP.NET as front-end and Microsoft SQL Server as back-end to develop their applications.
  • System components performance in ASP.NET using C#Jul 01, 2006. This article shows how to retrieve system properties in a webpage on just singleclick of mouse.
  • 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#.
  • Tip: How to Suppress if Duplicate a Memo Field in Crystal Reports?Jul 21, 2006. If you create a report with memo field in Visual Studio 2003 and check Suppress if Dupliate checkbox, you will notice the suppress on memo field does not work. This tip shows how to do it.
  • Best practices for .Net Performance - IAug 03, 2006. This article gives you an overview of best practices to attain .Net performance.
  • System Date Time Check FormatOct 18, 2006. This program executes the system date time format. Is it in dd/mmm/yyyy or other format and the which cultuerInfo is the system running on.
  • 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...
  • Monitor and Display CPU State InformationDec 18, 2006. This article describes a quick and simple approach to displaying information about the state of the CPU or CPUs on a targeted machine.
  • Stock Tracker Custom Control in C# .NETMar 07, 2007. This article describes the construction of a custom control used to check stock prices as made available through a public web service.
  • How do I Check for Duplicate Items in a ListView?May 09, 2007. This "How To" Shows you how to Check for Duplicate Items in a ListView
  • Multi-threaded Asynchronous Programming in C#... Getting started.May 12, 2007. Trying to build better solutions and growing as a developer has always been fun for me and I’m always looking for ways to build more scalability and robustness in the software I am writing. I had a revelation that I’ve been doing a lot of C# tweaking but not taking advantage of the core performance enhancements cooked right into C# and it all comes down to one thing: Asynchronous multi-threaded programming.
  • Spell check enabled RichTextBox custom controlMay 16, 2007. This article describes a quick and simple approach to applying a spell check function to the rich text box control and bundling both features into a single custom control. Of course there is nothing novel or particularly interesting about performing spell checking upon a selection of text using the Word.DLL.
  • Multi-threaded Asynchronous Programming in C#... Through The Web Page. Part VIJul 27, 2007. Async web pages which are primarily used as a server performance enhancement. There are two main methods we will be looking at that are used to execute operations asynchronously from web pages: Page.AddOnPreRenderCompleteAsync() and Page.AddOnPreRenderCompleteAsync().
  • WPF Database Communication Adding new Record to the DatabaseSep 06, 2007. WPF Database communication Adding new record to the database (XAML-MS-Access), I have a XAML form with FirstName, LastName, Email & Contact fields in it on click of submit button it will first check if the same email address is exists in the table else it will add new record I have made use of OleDbTransaction to perform add functionality.
  • Selecting multiple Checkboxes inside multiple GridViewsOct 04, 2007. Ths article describes how to check/ uncheck multiple Checkboxes inside two or more GridViews on same page with Masterpage and usercontrols.
  • Query Optimization in SQL Server 2005Dec 19, 2007. This article offers suggestions on how to optimize query performance in SQL Server 2005.
  • Caching in ASP.NET 2.0Jan 08, 2008. Caching is a technique of storing a copy of data in memory. You could cache a page or the results of a query. The advantage of caching is to build better performance into your application.
  • Selecting Checkboxes inside the GridView ControlFeb 27, 2008. This article explains about how to select checkboxes inside the GridView control using javascript.
  • High Performance Abstraction Layer for Non-Blocking Asynchronous Thread Safe SqlServer CallsApr 25, 2008. One of the things I find myself doing frequently is writing (and re-writing) plumbing code to execute database CRUD operations. I wrote an abstraction layer over asynchronous SqlServer calls that allows developers to correctly make async calls agains SqlServer without having to deal with any of the complex plumbing normally required. All source code is included with this article.
  • Avoid casting to improve code performanceMay 19, 2008. Casting is a big problem when it comes to the code performance. This article talks about how we can take advantage of generics in C# 2.0 to avoid casting.
  • Checking previous instance (single instance) of an C# windows application, also setting MDI child form to a MDI parentSep 04, 2008. In this article I will describe how to check previous instance (single instance) of an C# windows application and also whether a MDI child is set to a MDI parent
  • Working of Garbage Collector - Part IISep 24, 2008. this article explains you how garbage collector is well tuned for its maximum performance
  • Caching in ASP.NET 2.0Sep 25, 2008. This article discusses basics of caching in ASP.NET 2.0 and 3.5 and how to use it in our application to improve the application performance.
  • Materialized Views in Database SystemsOct 30, 2008. This article is intended to illustrate the concepts of materialized views in database systems and their realization through examples written for SQL Server and Oracle database systems.
  • Performance Tuning in Database SystemsNov 08, 2008. In this article, we’re going to learn the principles and techniques you can use to help troubleshoot and evaluate query performance by illustrating examples in Microsoft SQL Server and Oracle database.
  • Checking Nullable Values in .NETNov 28, 2008. This tip shows how to check values retrived from a database are null or not.
  • CheckBox in SilverlightNov 29, 2008. This article demonstrates how to create and use a CheckBox control in Silverlight with the help of XAML and C#.
  • Check Internet ConnectionJan 29, 2009. To check for an Internet connection in .NET, we can use GetIsNetworkAvailable method defined in the System.Net.Network-Information namespace.
  • Unit Testing with VS 2008 Team editionFeb 15, 2009. Unit tests allows the developers and testers to check the logical errors in the methods of classes in C# and VB.NET Projects.Unit test can be created once and can be run every time that source code changes.Unit test cases make sure that no bugs are introduced when you write the new code.
  • Business Process Modeling TechniquesApr 03, 2009. In this article, we’re going to illustrate principles and techniques to model business processes and check the underlying design in order to avoid certain anomalies.
  • Custom paging in ASP.NET 2.0 and SQL Server 2005 using ObjectDataSourceApr 13, 2009. This article is intended to show how to apply the paging mechanisms in Web applications using ASP.NET 2.0 and SQL Server 2005 as well as using the ObjectDataSource components.
  • Extending Logging Functionality From Enterprise LibraryApr 17, 2009. The Microsfot Enterprise Library provide us a collection of reusable software components, so software developers can take advantage of them to put them into enterprise use. Now I will share my personal experiences with my friends of how to extend current enterprise library functionality and improve the performance of enterprise applications.
  • Parameters for ObjectDataSource in ASP.NET 2.0Apr 30, 2009. This article is intended to show how to invoke server-side methods (expecting input parameters) stored in the SQL Server 2005 Management System using the ObjectDataSource components.
  • Implementing optimistic concurrency control in ASP.NET 2.0May 05, 2009. This article is intended to illustrate how to implement optimistic concurrency control in ASP.NET. Optimistic concurrency control is a mechanism to check when multiple users concurrently access and change a common data item; they don’t overwrite one another’s change. I’m going to illustrate a common scenario in an enterprise application and to show how we can solve the concurrency problems using optimistic concurrency control and the underlying implementation using Microsoft technologies.
  • Faster Performance of Deployed ASP.Net SitesMay 14, 2009. This article provides a few tips to ensure your deployed ASP.Net always runs with the best possible performance and no security information leakages.
  • Implementing business rules using customized DataSet objectsMay 15, 2009. Information systems contain and enforce rules about the business they support. A rule is constraint which describes the way how objects are to behave. Field-level validations are checks that pertain to the property values of the underlying business entities. For example, a field must be 50 characters or less in length or some fields are required while other fields are optional as well as some fields must be greater than a specific value.
  • 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.
  • Stream operation in WCFJun 01, 2009. WCF provides the support for Stream object. It typically recommends the developer to handle the message which size is too large as Stream object for the sake of high performance. However, there are some constraints on Stream operation to note.
  • How to Check if there is any Alphabet or Non Alphanumeric Character in a StringJun 23, 2009. This article gives you an idea about how to check if there is any alphabet or non alphanumeric character in a sttring just with the help of one metthod using regular expressions in C#.

About Check-CPU-performance

NA
File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!
VSLive! Anaheim