|
|
Unmanaged Memory Allocations
|
Total Hit (7606) |
If you are going to be using pointers, it may make sense to allocate from an unmanaged heap. For the vast majority of needs is not any better than the using the garbage collector, but if you are allocating a large amount of memory, especially for short periods of time, need better control of when me
....Read More |
Rating
|
|
|
Html Encoding and Decoding
|
Total Hit (6836) |
Some time you need funky code don't bother yourself by hard coding to every things when Microsoft give you facility.
Simply add refreces of System.Web to your project then where you need Encoding write this line
System.Web.HttpUtility.HtmlEncode()
Sample example
«code LangId=3»string String
....Read More |
Rating
|
|
|
Replace function in C#
|
Total Hit (8826) |
Currently C# has no replace function build in .net where are Vb.net has it. This function helps you to replace strings.
|
Rating
|
|
|
Windows Forms Drop Shadow
|
Total Hit (16370) |
«code LangId=3»public class Form1 : Form
{
private const int CS_DROPSHADOW = 0x00020000;
public Form1()
{
InitializeComponent();
}
protected override CreateParams CreateParams
{
get
{
....Read More |
Rating
|
|
|
How to check 64-bit Operating System
|
Total Hit (7616) |
<b>VB.net</b>
«code LangId=2»
Public Shared ReadOnly Property Is64BitOperatingSystem() As Boolean
<SecuritySafeCritical> _
Get
Dim flag As Boolean
Return ((Win32Native.DoesWin32MethodExist("kernel32.dll", "IsWow64Process") AndAlso Win32Native.IsWow64Process(Win32Native.GetCurrentPr
....Read More |
Rating
|
|
|
C# Regex - Parsing URLs With Regular Expressions
|
Total Hit (3963) |
While the .NET Framework contains a class call Uri which provides a lot of functionality when dealing with URLs and URIs, it's not always easy to get at the pieces of a URL. I present a technique here using regular expressions to extract the subparts of a URI in one fell swoop. But first let's talk
....Read More |
Rating
|
|
|
Part 1: An Introduction to Data Structures
|
Total Hit (3593) |
This article kicks off a six-part series that focuses on important data structures and their use in application development. We'll examine both built-in data structures present in the .NET Framework, as well as essential data structures we'll have to build ourselves. This first installment focuses o
....Read More |
Rating
|
|
|
Part 4: Building a Better Binary Search Tree
|
Total Hit (3580) |
This article, the fourth in the series, begins with a quick examination of AVL trees and red-black trees, which are two different self-balancing, binary search tree data structures. The remainder of the article examines the skip list data structure, an ingenious data structure that turns a linked li
....Read More |
Rating
|
|
|
Part 3: Binary Trees and BSTs
|
Total Hit (3526) |
This article, the third in a six-part series on data structures in the .NET Framework, looks at a common data structure that is not included in the .NET Framework Base Class Library: binary trees. Whereas arrays arrange data linearly, binary trees can be envisioned as storing data in two dimensions.
....Read More |
Rating
|
|
|
|
Basic Database Operations in ADO.NET
|
Total Hit (4852) |
This Article will show the basic database transactions select, insert update and delete. I am using MS-Sql database “northwind” for the demonstration. I am not going to use the class SqlCommandBuilder and I will tell you the reason later.
|
Rating
|
|
|
|
Part 2: The Queue, Stack, and Hashtable
|
Total Hit (3507) |
This article, the second in a six-part series on data structures in the .NET Framework, examines three of the most commonly studied data structures: the Queue, the Stack, and the Hashtable. As we'll see, the Queue and Stack are specialized ArrayLists, providing storage for a variable number of objec
....Read More |
Rating
|
|
|