iNET Interactive - Online Advertising Agency
          
   Home    Authors    About    Login    Contact Us
   Search:   
Advanced Search     
  Articles

  ASP (26)
  ASP.NET (19)
  C and C++ (4)
  CFML (2)
  CGI and Perl (16)
  Flash (2)
  Java (7)
  JavaScript (28)
  PHP (92)
  MySQL (13)
  MSSQL (3)
  HTML (35)
  SEO (9)
  Visual Basic (12)
  CSS (13)
  SSI (5)
  XML (12)
  C# (14)

  Developer News

September 7, 2008
Web Design Clinic - Art meets Webdesign
About
 
September 6, 2008
Browser safe colors - do we care?
About
 
September 6, 2008
Get a Daily CSS Tip
About
 
September 5, 2008
It's safe to use Google Chrome now
About
 
September 5, 2008
Add a comment
.net
 
September 5, 2008
The Partial Function Application in JavaScript
WebReference.com
 
Courtesy of moreover.com
 
Want to receive new articles via e-mail? Click here!
/Home /C#

Managing memory through C# 

  Views:    9491
  Votes:    2
by Pawan Bangar 10/09/04 Rating: 

Synopsis:

C# provides automatic memory management so that developers are freed from manual allocation and de-allocation of blocks of memory.
Pages: firstback2 forwardlast
The Article

Manual memory management requires developers to manage the allocation and de-allocation of blocks of memory. It is both time taking and tedious. C# provides automatic memory management so that developers are freed from this burdensome task. In the vast majority of cases, this automatic memory management increases code quality and enhances developer productivity without negatively affecting either expressiveness or performance.

Program:

Using System;
public class stack {
private node first = null ;
public bool Empty {
Get {
Return (first==null);
}
   }

public object Pop() {

if (first==null)
throw new Exception("Cannot Pop from an empty stack.");
else {
object temp=first.Value;
first=first.Next;
return temp;
}
}

Pages: firstback2 forwardlast



 
  Sponsors