C# Corner

Resources  
  • Control Statemenats - Part 1Jun 01, 2001. This lesson shows how to use c# control statements, and the difference between these controls in C++/ JAVA and c#. Sample includes single selection, if-else, and multi case ..
  • An insight into Code Reusability and COM Interoperability : Part IAug 28, 2001. Code reusability is the art of using existing code to achieve better productivity and ease of maintenance. The concept of reusability is not new. Its existence has been evident since the evolution of mankind.
  • VS.NET Tools Intermediate Language Disassembler (ILDAM)Feb 06, 2002. "The ILDSAM tool parses any .NET Framework EXE/DLL Module and shows the information in a human-readeble format"
  • Multi-threaded Web Applications - Case I: Search EngineMar 07, 2002. This article is the first of the series of 4. I will demonstrate the use of threading in web applications by implementing a simply search engine. The following 3 articles in the series will be a Port Scanner, a Reverse DNS and a Web Hammer respectively.
  • Multi-threaded Web Applications - Case II: Port ScannerMar 12, 2002. This article continues the 4-parts series of Multi-threaded Web Applications. In the first part, I have demonstrated how you can use multi-threading with ASP.NET to make a web based search engine more responsive, and to reduce the time required to compose the result. In this article, I will demonstrate how you can apply the same technique to a web based port scanner.
  • Tracking Time in a Window ApplicationApr 15, 2002. The program reads from an XML file to get the data about names and birth dates, so it is easy to add or remove names without changing the code in case my son decides the program should include his pet dog or turtle.
  • Case Study: Demo Networking Financial System May 23, 2002. In this tutorial I will discuss some of the design and development issues that one might consider when using .NET framework for developing Network affiliated applications.
  • ManifestMaker: Creating your own ManifestMay 31, 2002. When switching over to .NET, I was annoyed at how difficult it was to use Windows XP themes in my applications, so I created this class to ease my life.
  • Utilizing Assembly Information for Your Automated Splash DialogJun 05, 2002. There are cases when you need to reuse the same splash screen or about box in many applications.
  • Function to Change a Block of Text to Title CaseNov 20, 2002. Function to change a block of text to Title Case.
  • J2EE to .NET Migration: Quick TipsMar 26, 2003. Here are some Quick tips to get you started, in case you need to migrate a J2EE based application to a .NET based application.
  • C# Coding TechniquesSep 05, 2003. I wrote this article for novice programmers who needs to grasp the concepts of "What's C# code?" and "How we can write code?". To read this article you must have an overview of the .NET Framework and Visual Studio.NET (VS. NET).
  • Object Oriented: The Grownup Way to CodeSep 29, 2003. Back in my dark days of Procedural Programming, I remember someone giving me a problem, then banging out a few (hundred) lines of code, achieving my goal, and going on with my life. The next time a similar problem would arise, I’d rewrite, or in some cases, cut & paste my old code to achieve a similar, yet slightly different outcome.
  • Working with Windows TabControl with C#Dec 16, 2003. Windows TabControl is a useful control that allows you display multiple dialogs tabs on a single form by switching between the tabs. In this tutorial, I will explain how to create and use a TabControl in your Windows applications with C#.
  • Implementing Security Access Rights in ASP.NET ButtonMar 24, 2004. In Web based Application, each of the users have different privileges and access rights based on their roles. Each of these roles can have read or write access for different Web pages.
  • TFTP application written in C#Jul 07, 2004. This application is the beginning of a program I want to use to download switch/router configuration files via TFTP and archive them. This application merely asks for an IP address and a filename then it receives the file via TFTP and displays it in a RichTextBox.
  • Build a .NET Solution or Project from the Command Line Sep 27, 2004. Devenv allows you to set various options for the integrated development environment (IDE) as well as compile, build, and debug projects from the command line.
  • Moving C Structures into .NET with Custom MarshalingDec 17, 2004. Microsoft provides several attributes for marshaling C to C#. In our example we will take the case where we have hundreds of structures and only a few API calls, so we only need to generate the marshaled code for the structures.
  • Data Access Layer to execute Stored ProceduresJan 18, 2005. This article explains about executing a single stored procedure or batch of stored procedures from the application layer. As Data access layer completely decoupled from Application layer we just need to change the Application layer in case of any change in underlying database schema.
  • Automated Code Coverage and Unit TestsMar 08, 2006. A short tutorial that explains how to use a code coverage tool and how it can be integrated with unit tests to allow us to determine how well the unit tests exercise our application/classes. Code examples are written using C#.
  • Top 10 Reasons to Switch from Java to Visual C#Jun 03, 2006. This article details the major reasons for Java programmers to consider switching from the Java language to Visual C#.
  • Building Custom Paging Web FormAug 21, 2006. Sometimes we may need to build our own data objects instead of using DataSets & DataTables. But in this case, we will lose all paging and sorting facilities that is represented using DataSets & DataTables. To overcome this small issue we'll have to write our own custom paging feature as well as with sorting.
  • Leveraging the "using" keyword in C#Jan 17, 2007. The “using” keyword in C# is one of the best friends of programmers but many of us may not realize this. The “using” keyword is used in two cases – First when importing a namespace in your code and second in a code block.
  • Interoperability between WCF and Oracle Application Server : Part IJan 24, 2007. This article is part of series intended to show how to use Web Services related technologies to interoperate applications running in different platforms, in this case, the most common scenario between Microsoft.NET and Oracle AS platforms.
  • Enforce Text Case with Custom ControlsApr 02, 2007. This article shall describe the construction of three custom controls; each is used to format its text content to be either all upper case, all lower case, title case, or normal (as typed) case regardless of the format of the input.
  • 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.
  • XML in SQL Server Part 1Feb 27, 2008. This article gives you an overview of working with XML in SQL Server.
  • Configuration Sections; Introducing the Custom Configuration Section Concept: Part IApr 14, 2008. Custom sections of an ASP.NET Configuration File are customized sections that a developer configures by himself. In this case, the developer also sets their attributes and elements to suit special application needs in terms of settings.
  • Add and handle connection strings in an application configuration file: Part IApr 17, 2008. There are two ways to save data and parameters. In this case we save application parameters like information entered by the user during the installation process.
  • Introduction to The Resources .resx and Resources Files: Part I May 05, 2008. In some cases an application needs some external resources to perform specified tasks. And I mean by external resources, those none executables data logically deployed with a given application.
  • Using Symmetric Algorithms to Encrypt DataMay 20, 2008. In this article, I will propose a method of how to encrypt data and store it using symmetric algorithms whose are, in fact, four integrated classes within the .Net framework, namely DES,RC2,Rijndael and TripleDES but I will perform the task using the two last ones as they are the mostly used in real time cases.
  • Using the default keyword in C#May 22, 2008. The keyword default plays several and important roles in the C# language, therefore, I will enumerate some cases where the default keyword is used.
  • Encrypt and Decrypt Sensitive Metadata Within Your Config file Jun 18, 2008. In a certain cases, metadata embedded within your configuration file is sensitive. In fact, imagine that you develop an application that uses a data base as data source; all information about this data base is located in the configuration file. What if a hacker success to log into your configuration files and obtains the connection string and other metadata about your data base??
  • UML Interview Questions Part 1Nov 09, 2008. In this section will be cover Use case digrams,Class digrams,Composite digrams,Sequence digrams,Object digrams
  • Visual C# IDE Tips: Part IINov 11, 2008. This post explains the some more tips on using Visual C# IDE to enhance developer productivity.
  • 6 basic steps of how to create a WebPart in SharePointJan 26, 2009. This is beginners tutorial of how to deploy a WebPart in SharePoint. It is a 6 step procedure and this tutorial will walk through the same. In case you are fresher to SharePoint you can read my FAQ articles listed below. I am sure within an hour you can get acquainted to SharePoint and get started.
  • 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.
  • How to Prepare Quotations (Project Estimates) Using Use Case Points May 17, 2009. Quotation (Project Estimation) is one of the important aspects of software cycles. Any prediction less or more will affect the project a lot. Let's look at how basically day to day businesses manage their ways of handling quotations.
  • Search and selection of data using LINQMay 27, 2009. In this article I will explain how you can use LINQ, when we should search and select some data according to parameters, defined by users.
  • Windows Vista Security, Review of Data Execution Prevention Jun 03, 2009. Windows Vista introduces a range of new technologies that make the most secure desktop version of Windows to date. The following article provides an objective analysis of one of these improvements. Our goal is to help people better understand the true security climate that awaits them with Windows Vista, in this case with DEP (Data Execution Prevention).
  • Singleton Design Patterns in C#Jun 08, 2009. Whenever we want that a class has only one instance and it should have global point to access it but allowing the flexibility to create more objects if the situation changes,in that case we will use Singleton Design Pattern.
  • Handling the power off button in Pocket PC in C#Aug 18, 2009. In this article we will see How to handle the code if power is being switched off in Pocket PC.
  • Control Statements in C#Nov 20, 2009. In this article I will explain you about different control statements in c#.
  • Data Persistence Navigation in Silverlight 3Dec 16, 2009. There are situations where you need to input some data as well as navigate to a specific page and come back to enter data again. In that case usually Silverlight doesn't persist data.
  • The Switch Class in C#Feb 07, 2010. In this article I will explain you about the Switch Class in C#.
  • MVVM implementation for Windows formsMar 03, 2010. In this article we will see how to implement the MVVM for the case of the Windows Forms.
  • WPF and user interactivity Part V: Drag and Drop for WPFApr 28, 2010. In this article, I will show a very simple and basic drag and drop use case.
  • RelativeSources in WPFMay 11, 2010. In this article, I will expose the use cases of the RelativeSources in WPF.
  • Basics of Data Communication: Part 4Jul 19, 2010. This article will explain about, Transmission Media, Guided Transmission Media, Twisted Pair, Coaxial Cable, Optical fiber, Wireless Transmission media, Multiplexing, Circuit Switching etc.
  • Toying with the C# 4.0Sep 03, 2010. In this article, I will expose those two issues not thought the theorist manners but thought real cases via some implementation techniques.
  • Steps to make public site in Share pointSep 06, 2010. In Share point when dealing with internet site we should have some situations where we need to give access to some people who were not in our Active directory or Databases(In case of Forms Authentication).
  • Introduction about Command Design PatternSep 21, 2010. The Command pattern creates distance between the client that requests an operation and the object that can perform it.
  • Performance of If-else if tree vs. Switch (multiple variables) in C#Sep 28, 2010. This article demonstrates multiple ways to implement if-else if tree, when there are multiple values to check, and compares their performance to a switch.
  • Testing DocumentsOct 18, 2010. In this article you will learn about Testing Documents.
  • Hosting WCF Service inside IISNov 12, 2010. Windows Communication Foundation(WCF) takes many existing communication technologies, such as Web Services, Windows Remoting, Microsoft Message Queuing, and abstracts them into a single technology. In most cases, this simplifies the way you communicate with other applications.
  • Betterness rule while calling a method in C# 4.0Dec 03, 2010. In a case where a method is overloaded and along with that some of the parameters are optional for one or more definitions, then there is some confusion related to which version of the overloaded method is to be called.
  • Rich Internet ApplicationDec 13, 2010. In this article, I am going to cover what makes the people to switch over to Rich Internet Application. Before getting into the picture, first we will see the general architecture of the simple web application.
  • Configure Remote BLOB Storage (RBS) with the FILESTREAM provider (SharePoint 2010)Feb 23, 2011. In This article I am describing about how to install and configure Remote BLOB Storage (RBS) with the FILESTREAM provider on a Microsoft SQL Server 2008 database server that supports a Microsoft SharePoint Server 2010 system. RBS is typically recommended in the case where the content databases are 4 gigabytes (GB) or larger.
  • Creating Credential Store for Form Authentication in ASP.NET 3.5Mar 22, 2011. When we don’t want to validate user on window credential, in such cases we can take help of ASP.NET infrastructure for implementing our own authentication infrastructure which includes custom login page that validate user against credentials like database and later established security context on each request.
  • Show Excel File in ASPX pageApr 08, 2011. In this article I show an Excel file in an aspx page; many times we want to see a large amount of data when running our project, so we switch to Excel file & see the data.
  • Implicit DataTemplates in Silverlight 5, With practical case studyApr 20, 2011. As we know Silverlight 5 Beta has been released with some exciting features for developers. Based on the priority and the importance for a LOB application I am trying to cover the features. In my last article we discussed XAML binding debugging option and in this artiucle we are going to have a look into the new implicit DataTemplate feature.
  • Computer Aided Software Engineering Tools (CASE)Apr 26, 2011. CASE stands for Computer Aided Software Engineering which is software that supports the software development process
  • TFS 2010 Scrum - Relation between PBIs, Tasks, Bugs and ImpedimentsMay 04, 2011. In Scrum, the product backlog is the list of requirements for the system. In this article we are going to see how the Product Backlog Items (PBIs), test case, tasks and bugs are linked.
  • Case Statement in SQL ServerJun 02, 2011. In this article I will describe the usef of a case statement in SQL Server.
  • Attributes in C#Jun 08, 2011. In this series we will see the usage of “Attribute” with the help of some examples and creation of our own custom attributes to be used in a sample use case.
  • Fixed Value based Status Indicator in SharePoint 2010Jun 13, 2011. In this article we will be seeing how to create fixed value based Status Indicator. In some cases we may need to enter the value manually for a status indicator.
  • Building .NET Enterprise Applications with Patterns: Part I - Introducing Enterprise DevelopmentJun 19, 2011. This explains what enterprise applications are, how to build them and provides an introduction to a case study.
  • Tab Control in JavaScriptJun 28, 2011. Here we create a simple tab control in JavaScript. In this case when we mouse over the tab it activates and we are able to see the contents.
  • How to Save Records at The Time of Adding in LightSwitch Beta 2Jul 12, 2011. Here we will discuss how to save records to the database at the time of adding it.
  • How to Add Custom Control in LightSwitchJul 18, 2011. Today we shall see how to handle custom controls in LightSwitch as a series of articles.
  • Adding Custom Control Dynamically in LightSwitchJul 19, 2011. In this article we shall see about how to add the custom control dynamically to the LightSwitch screen.
  • Proper Usage of Form.AcceptButton and Form.CancelButton Properties in Windows Forms ApplicationsAug 03, 2011. In this article we will first pass from simple to more complex cases which programmers might encounter in practice and then provide a full scale solution to the problem of maintaining AcceptButton and CancelButton properties in form of ready-to-use set of classes. Finally, we will provide an example which demonstrates how simple it is to use these classes.
  • Application Execution Model in Windows Phone 7Aug 10, 2011. Window Phone 7 (Mango) provides the Fast Application Switching (FAS). With FAS, the user can start a new application and then return to your application without seeing the "resuming…" screen and without a discernable pause.
  • Web Service Design for Chunked Transfer of Large Quantities of DataAug 18, 2011. In this article we are going to demonstrate design techniques which can be used to produce such Web service. Solution which will be developed along the course of this text is for demonstration purpose only and cannot be applied to practical, real world problems as is. But we hope that methods used to develop it can be applied to much more complex cases.
  • How to Create a Read Only Farm or Site in SharePoint 2010Aug 29, 2011. This article describes how to run a Microsoft SharePoint Server 2010 farm in which some or all databases are set to be read-only. This will be useful in the case of migrating your content databases from one server to another.
  • How to handle Property Changed Event in LightSwitch 2011Sep 04, 2011. In this article, we shall discuss about how to handle the Property Changed Event in LightSwitch 2011.
  • How to add Records programmatically into Entity in LightSwitch 2011Sep 05, 2011. In this article we shall discuss about what my colleague has discussed with me for help on his LightSwitch project.
  • Context switching in Windows Phone 7Sep 14, 2011. Very first let us understand what I mean by word “Context Switching“ here? Context switching in context of this post is essentially, navigate back to the page from where the application got deactivated.
  • Creating Generic Enums using C#Oct 11, 2011. An enum variable can then be set to any one of these constants or (in the case of ‘Flags’ enums) to a meaningful combination of them.
  • Format Data on a Screen in a LightSwitch ApplicationOct 23, 2011. Using this article one can format data on a screen in a LightSwitch application.
  • How to Export Data from Two Different Entities in LightSwitch Dec 03, 2011. So today I am going to explain how to export data from two different entities [tables] in LightSwitch.
  • How to Work with a ToggleSwitch in Windows Phone 7Dec 14, 2011. In this post I will discuss the Toggle Switch Button.
  • How to Check Application Returning from Dormant State in Windows Phone 7Dec 20, 2011. In this article you will see how to check application returning from dormant state in Windows Phone 7.
  • Service Contracts with Single Unique Endpoint Hosted on Web AppDec 29, 2011. Today, in this article let’s see the clear implementation of when a case arises to use several service contracts and then implement the developed service in well formed unique way. So firstly, let get ready and fire up visual studio 2010. File->New Project-> WCF Service Application
  • Let's Play Around With Channel Factory in WCF Service Hosted on Web AppJan 08, 2012. Today, in this article let’s play around with one of the most interesting topic in WCF and we will try to implement this concept such that we can get much better idea on idea to handle the real time case scenarios.
  • Default Endpoint Case Scenario Implementation in WCF 4.0 Hosted on Web AppJan 08, 2012. Today, in this article let’s learn one of the most interesting and top most feature of WCF 4.0. This Implementation of Default Endpoint made life easy and simplified process of implementation. This concept is highly attracted by many and many organizations love to use it.
  • Case When Select Command in MySQL ServerJan 11, 2012. In this article you will learn the use case with the select command in MySQL server
  • Toggle Switch in Windows Phone 7 Messages via WCF ServiceJan 22, 2012. Today, in this article we will dig out on one more interesting implementation in WP7 which whereby gets cross messages from WCF Service based on Toggle Switch Operation.
  • Basic Terms Related to TestingFeb 03, 2012. In this article we are throwing some light on the basic terms related to testing so that one can understand each and every word of it.
  • Functional Testing-Part 1Feb 09, 2012. In this article we are throwing some light on functional testing and the techniques for designing its test cases.
  • Create a Custom Range Validator Control in Windows Phone 7Feb 11, 2012. In this article we are going to explore how to make a range validator in Windows Phone 7 and the lower case validator is described as well.
  • Switch Menu Using JQueryFeb 12, 2012. Switch Menu now supports persistence (so it remembers which menu item was last expanded) whenever you revisit the page. To sweeten the deal, you can choose between "sitewide" and "local" persistence, with the former remembering the menu state across your entire site.
  • Switch Menu II Using JQueryFeb 13, 2012. A Switch Menu is a common UI component in many applications. A number of JavaScript libraries provide a nice and simple Switch Menu.
  • Color Sliding in WPFFeb 14, 2012. The Slider control is one of the controls in WPF. This control simplifies the process of coding for some UI design cases where you need to let your user choose a value and change it and you update your interface based on the user's choices.
  • Interlocked Class in c# ThreadingMar 07, 2012. The methods of this class help protect against errors that can occur when the scheduler switches contexts while a thread is updating a variable that can be accessed by other threads, or when two threads are executing concurrently on separate processors.
  • Switch Between Metro UI and Desktop in Windows 8Mar 17, 2012. In this article, I explain how to switch between Metro UI and Desktop Mode. Articles also talks about some short cut keys.
  • Use of Applications and Snaps Applications in Windows 8Mar 18, 2012. In this article I will explain how to switch between Application or Snaps Application in Windows 8. If You are using a Metro UI and Desktop, then you are running multiple applications. A Metro application is very simple on the touch screen. You can swipe your finger in the left side or right side in the touch screen.
  • Control Your Remote Control Car With PC KeyboardMar 20, 2012. This is something I have been working with sometime back. Goal is to control my remote control car using my computer's keyboard...Isn’t it cool. I haven’t used any of the complicated circuit’s diagrams etc! Idea is really simple only base theory used is, “a transistor can act as a switch”.
  • Switch Between Windows Accounts and Local Accounts in Windows 8Apr 04, 2012. In this article I will explain how to switch between the Windows Accounts and Local Accounts.
  • Secure WCF Restful Service Using OAUTHApr 24, 2012. This article shows how to build a WCF Restful service which is a so called service provider & client application (in this case it's a web app) which uses a service so it's called a consumer.

About switch-case

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