C# Corner

Resources  
  • Copying and Pasting on Clipboard using C#Feb 23, 2001. If you use CTRL+C, some data or files are copied to a system clipboard and stored in system memory and when you use CTRL+V, the data is copied back to wherever you paste it. The Clipboard class provides functionality to place and retrieve data from the system clipboard. Usually
  • 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.
  • Working With Process ClassMay 22, 2001. This article is aimed at introducing the novice .NET developer to the basic usage of System.Diagnostics services included in the .NET BCL.
  • Screen Capturing a Form in .NET - Using GDI and GDI+Sep 15, 2001. This article shows way to do form capture in GDI is to get the device context to the screen and bit blast it to a Bitmap in memory.
  • 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.
  • Memory GameMar 19, 2002. This is a memory game where you can use your favorite pictures (.bmp, jpg, gif).
  • Saving and Reading Object to/from a DatabaseMar 25, 2002. An object is a memory stream, which is hard to write using the normal methods. In this article, I show how you can save objects in a database and read back from the database.
  • MDX Query BuliderNov 11, 2002. In this article we will be developing a MDX Query Builder.This is similar to the MDX sample application operations, which carry out the transfer of blocks from the secondary memory to the main memory and vice versa.
  • The "Using" Statement in C#Dec 11, 2002. The .Net Framework provides resource management for managed objects through the garbage collector - You do not have to explicitly allocate and release memory for managed objects.
  • Concurrency Control in ADO.NET using Threads and MonitorsDec 31, 2002. The concurrency controls system refers to the lowest level in architecture of a DBMS. It is relative to the input/output operations, which carry out the transfer of blocks from the secondary memory to the main memory and vice versa.
  • 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.
  • Distributed Cross Platform Applications, the Easy Way Mar 07, 2003. There are many ways of transferring data from one process to another. All those methods have some advantages, but also some drawbacks.
  • 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.
  • Memory Management in .NETNov 17, 2003. This tutorial describes Memory Management in .NET.
  • Avoid Memory Leaks with Destructor and DisposeJul 01, 2004. Here are two classes that allocate resources, the first class needs to implement a custom destructor and standard Dispose, but the second class doesn't need either.
  • Generic Types in C# 2.0 with SampleAug 01, 2005. This article discusses generic types available in C# 2.0. The article also shows some sample source code on how to use generic types.
  • ASP.NET Session StateSep 21, 2005. Session state is nothing more than memory in the shape of a dictionary or hash table, e.g. key-value pairs, which can be set and read for the duration of a user's session.
  • 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.
  • Types of VariablesJan 14, 2006. In this article we'll cover the behaviors of variables to Reference Types.
  • 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.
  • C# Heap(ing) Vs Stack(ing) in .NET: Part IIJan 15, 2006. Having a basic understanding of how memory management works will help explain the behavior of the variables we work with in every program we write. In this article I'll cover some of the behaviors we need to be aware of when passing parameters to methods.
  • C# Heap(ing) Vs Stack(ing) in .NET: Part IIIJan 15, 2006. Having a basic understanding of how memory management works will help explain the behavior of the variables we work with in every program we write. In this article we’ll cover an issue that arises from having reference variables in the heap and how to fix it using ICloneable.
  • C# using the Proxy Pattern to Define RelationshipsJan 23, 2006. I was recently working on a 2.0 Framework project where we had many types of related objects. However, we needed to ensure that there were not multiple instances of the same object in memory. Usually the GOF Proxy pattern is used to hide or control access to an object, but we can also use it to define relationships between objects.
  • C# Heap(ing) Vs Stack(ing) in .NET: Part IVJan 30, 2006. Having a basic understanding of how memory management works will help explain the behavior of the variables we work with in every program we write. In this article we’ll look further into Garbage Collection (GC) and some ways to keep our applications running efficiently by using static class members.
  • Creating ASP.NET Photo Album using FileSystem as DataFeb 13, 2006. Memories Photo Album is ASP.NET application which allows you to easily create online photo album just by specifying folder containing subfolders and images. I created this application to share personal photos with friends and family, last month I converted it to .Net Framework 2.0 and decided to share with community.
  • 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.
  • Using Dispose method in C#Feb 17, 2006. This artice will explain about Finalize and Dispose method implementation in C#.
  • 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.
  • 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#.
  • Illustrates the use of the lock in multithreading applicationAug 17, 2006. Any application must have one or more processes. A Process is structural unit with a memory block and using some set of resources. For each executable, the Windows operating system creates some isolated memory block. This article tries to explain the use of lock basics of Multithreading in C# .Net.
  • Changing XSL StyleSheets on the FLY in C# and ASP.NETSep 26, 2006. This article shows you how you can use alter XSL in memory to transform XML data into HTML with different results.
  • Strategy for querying Microsoft Access as an In-Memory Database using DataSets and ADO.NETJan 09, 2007. This article describes how you can read tables in from MSAccess up front in your application and then query the tables in-memory using some powerful features of the DataSet and ADO.NET
  • Strategy for querying Microsoft Access as an In-Memory Database using DataSets and ADO.NETJan 19, 2007. DataSets are powerful data structures with the capability of allowing the programmer to treat them as in-memory databases.
  • 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.
  • 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.
  • 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.
  • Caching in ASP.NetJan 05, 2009. Caching is… a technique used to temporarily store the frequently used data and Web pages on the main memory, to be reused later on.
  • 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.
  • 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.
  • .NET Best Practice No: 1:- Detecting High Memory consuming functions in .NET codeAug 15, 2009. This article discusses the best practices involved using CLR profiler for studying memory allocation.
  • Best Practices No 5: Detecting .NET application memory leaksSep 29, 2009. In this article we are going to detect the .NET application memory leaks.
  • Data Cache in ASP.NETMar 03, 2010. Data Cache is used to storing frequently used data in the Cache memory.
  • An Introduction to Virtual Memory in WindowsMar 04, 2010. This article is about virtual memory, and there are some similarities between virtual memory and alternate universes in Science Fiction stories.
  • Demystifying CLR: Part IMar 15, 2010. In this article, I am going to explain fundamentals of CLR.
  • Lazy Initailization in .NET 4.0May 18, 2010. Lazy initialization or lazy instantiation means that an object is not created until it is first referenced. Lazy initialization is used to reduce wasteful computation, memory requirements. Following is an example where Lazy initialization is particularly useful.
  • How to create Line Graph and Bar graph on same parameters in asp.netJun 03, 2010. We can use GDI+ to draw chart components in C# or VB.NET language in memory and once the components are drawn in memory, we can save the drawing in an image on the Web server. Once the image is saved, we can display this image in an ASP.NET page using any Image tag or image control.
  • Garbage Collection: Memory Management in .NetJun 15, 2010. In this article we will look at the mechanics of the Garbage Collection and the Memory Management.
  • Memory Handling on NULL Values Using Sparse ColumnsOct 11, 2010. Sparse columns is a new feature in SQL Server 2008. Thr feature enables us to store null values effectively. Ideally, if the column is NULL, then the data won't be stored in the database and it's cost effective solution to save the space. If your table has more Null values, we can use this solution.
  • SQL SERVER Memory ManagementNov 29, 2010. In this article you will learn how to use SQL SERVER Memory Management.
  • How to Diagnose System Usage with a LINQ QueryDec 20, 2010. This LINQ query determines the top 5 applications that are using the most memory in the system.
  • How memory is managed by Stack and HeapFeb 24, 2011. I studied many articles about memory management, but they are all confusing about when memory is allocated in the stack and when memory is allocated in the heap. But I always got confused. But finally, I got exactly what I wanted.
  • Using Memory-Mapped FilesMar 30, 2011. MemoryMappedFile is an interesting new class in version 4.0 of the .NET Framework which resides in the System.IO.MemoryMappedFiles namespace.
  • CLR Execution ProcessApr 13, 2011. Here you will see CLR Execution Process.
  • Tracing in ASP.NETJun 04, 2011. In this article we will learn how to trace the ASP.NET application to determine what is running behind and how much time, memory etc. are being consumed.
  • Working With the DataTable Class in C#Jun 21, 2011. A DataTable object represents tabular data as an in-memory, tabular cache of rows, columns, and constraints.
  • Get Your Hardware Information Using C#Jun 28, 2011. In this article I will discuss how to get information about your system hardware such as available CPU Id, Physical Memory, BIOS-Information, CPU-Speed, Motherboard Maker, CPU Maker.
  • Ins Tag in HTML5Aug 02, 2011. The ins tag defines text that has been inserted into a document.
  • Cookies in ASP.NET 4.0Oct 31, 2011. Cookies are one of the State Management techniques, so that we can store information for later use. Cookies are small files that are created in the web browser’s memory (if they’re temporary) or on the client’s hard drive (if they’re permanent).
  • Audio tag in HTML5Nov 22, 2011. This new element allows you to deliver audio files directly through the browser, without the need for any plug-ins. embedding the audio file into a web page via the src attribute.
  • Windows Azure - ProfilingNov 28, 2011. In the previous articles we have seen a way of logging information and publishing in Windows Azure. In this article we can experiment on Profiling.
  • Flyweight PatternNov 29, 2011. Flyweight is an object that minimizes memory by sharing data as much as possible with other similar objects.
  • Inter-process Communication Between Managed ProcessJan 08, 2012. This article explains Memory Mapped Files for inter-process communication.
  • Arrays in CFeb 09, 2012. Arrays are a linear data structure that stores the same type of data in contiguous memory locations. Arrays are best used to store data in contiguous memory locations.
  • Clear Cache in Windows 8Apr 04, 2012. In this article we will explain how to delete caches in Windows 8 to improve system proficiency. There are three type of caches in Windows 8: memory caches, DNS caches and thumbnails caches.
  • Memory Diagnostics Tool in Windows 8 Apr 09, 2012. In this article I will explain about how to start the Memory Diagnostics Tool in Windows 8.
  • SharePoint 2010 Internals - Timer JobsMay 08, 2012. SharePoint Timer Jobs are the heartbeat of any SharePoint Farm. They perform many important background tasks and generally consume substantial amounts of memory.
  • Check Memory Usage Details in Windows 8Jun 04, 2012. This article explains how to check memory usage details in Windows 8.
  • Start Memory Diagnostic Tool in Windows 8Jun 05, 2012. This article explains how to start the Memory Diagnostic Tool in Windows 8.
  • Alter Memory Dump File Location in Windows 8Aug 05, 2012. This article describes how to alter the Memory Dump File Location in Windows 8.
  • Adding Power Pivot Add-Ins in Excel 2013Aug 28, 2012. In this article we will discuss how to add the Power Pivot in Excel 2013.
  • Transforming Data Source Objects Into XML Using LINQ: Part 9Sep 04, 2012. In this post you will learn how to transform data source objects into XML.
  • Paging and Sorting ListViews with ASP.NET MVC and jQueryNov 09, 2012. 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.
  • Starting With jQueryNov 28, 2012. jQuery has several benefits over using other JavaScript libraries. It has great AJAX supports with easy DOM-model access. It is more easy to use compare to other libraries. Large numbers of plug-ins are available for it. jQuery also has a good level of tutorials and examples. JQuery is simple in use and easy to extend. And also it is most popular library collection among others.
  • Make Our Own Windows 8 Start Button With Zero Memory UsageDec 04, 2012. This article explains how to make our own Windows 8 start button with zero memory usage.
  • How to Check System Performance in Windows 8Dec 06, 2012. In this article we are going to explain how to check the performance of a system in Windows 8.
  • Constructor and Destructor in PHPJan 29, 2013. In this article I explain how to create a constructor and release memory by a destructor.
  • iPhone Memory Leaks Tracking and Use of InstrumentsFeb 14, 2013. This article shows the use of Instruments for tracking application memory leaks.
  • XAML Developer Must Care About Your Registered EventsApr 18, 2013. Memory leakage in applications are very common and in an effort to save time a developer does not care about it. There are various possibilities for memory leakage and one of them is the events registered in applications that a developer unknowingly forgets to handle.
  • How to Increase the Virtual Memory of Your System ManuallyApr 20, 2013. In today's article you will learn how to increase the Virtual Memory of your system manually.
  • How to Use Memory Dump in Case of System Failure or CrashApr 22, 2013. In today's Article you will came to learn about how to use a Memory Dump in case of a system failure or crash.
  • Memory allocation using new operator in C#Jun 29, 2013. This article presents some interesting facts of the new operator in C#.
  • Create XML in C#Jun 30, 2013. In this article, we will learn how to create an XML file in-memory and write it to the local storage using C# and .NET.
  • 5 Tips to Improve Your C# Code: Part 2Jul 06, 2013. In this article I would like to show memory consumption of various code snippets.
  • In-Memory OLTP in SQL Server 2014Jul 09, 2013. This article explains how to work with In-Memory OLTP in SQL Server 2014.
  • Updated Version Of Operating System X 10.9Jul 17, 2013. This article defines the tenth updated version of Operating System X class.
  • How to Create Add-Ins Using VSTO in MS-WordJul 26, 2013. VSTO application add-ins allows developers to extend Office applications. Visual Studio Tools for Office (VSTO) is a set of development tools available in the form of a Visual Studio add-in (project templates).
  • Office Application Development in Visual StudioJul 31, 2013. In this article you will learn about the office application development in Visual Studio 2013 Preview.
  • Demystify Garbage Collection in C#: Part 5Aug 24, 2013. In this article we will see how the Garbage Collection algorithm works. We will next see how to implement a weak reference to optimize performance.
  • Look at WinDbg Commands For Advanced .NET DebuggingSep 27, 2013. This article describes the WinDbg commands helpful for analyzing an ASP.NET memory dump.
  • Look at ProcDump Tool For Memory Dump CollectionOct 01, 2013. In this article, we will look into ProcDump, its purpose and how to use it.
  • Architecture of Oracle 11g (Part 2)Oct 11, 2013. In continuation of my previous article, here we will go through the second part of the memory structure of the Oracle architecture which is known as PGA (Program Global Area)
  • Architecture of Oracle 11g: Part 1Oct 11, 2013. Today, we will explain the Oracle 11g architecture. It is basically divided into the three major parts, Memory Structure, Logical Database Structure and Physical Structure
  • Configure Windows Event Log to Collect Memory DumpOct 15, 2013. In this article, we will look into configuring the Windows event log to collect a memory dump, when an error or warning occurs.
  • Examples of Get in JavaNov 07, 2013. This article provides various examples of using get in Java.
  • Garbage Collection in JavaNov 13, 2013. This article explains garbage collection in Java.
  • Static Initialization Block in JavaNov 19, 2013. This article explains static initialization blocks in Java.
  • Constructors in JavaScriptNov 28, 2013. A constructor is a function that instantiates a new object. This is done only when memory has been allocated for it.

About In-Memory

NA

SPONSORED BY

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!
Download Free eBooks