Click here to Skip to main content
12,999,417 members (48,738 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Downloads

Stats

175.7K views
290 bookmarked
Posted 23 Aug 2009

.NET Best Practice No: 2:- Improve garbage collector performance using finalize/dispose pattern

, 15 Aug 2010
.NET Best Practice No: 2:- Improve garbage collector performance using finalize/dispose pattern
WindowsFormFinalize
WindowsFormFinalize
bin
Debug
Release
WindowsFormFinalize.exe
WindowsFormFinalize.pdb
WindowsFormFinalize.vshost.exe
WindowsFormFinalize.vshost.exe.manifest
obj
Debug
TempPE
Release
TempPE
WindowsFormFinalize.csproj.GenerateResource.Cache
WindowsFormFinalize.exe
WindowsFormFinalize.Form1.resources
WindowsFormFinalize.pdb
WindowsFormFinalize.Properties.Resources.resources
Properties
WindowsFormFinalize.suo
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormFinalize
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            for (int i = 0; i < 100 * 1000 ; i++)
            {

                clsMyClass obj = new clsMyClass();
                obj.Dispose();
               
            }
            
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author


You may also be interested in...

Pro
Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170624.1 | Last Updated 16 Aug 2010
Article Copyright 2009 by Shivprasad koirala
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid