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 (34)
  SEO (9)
  Visual Basic (12)
  CSS (13)
  SSI (5)
  XML (12)
  C# (14)

  Developer News

May 13, 2008
I want to create a site just like ____, is that a violation of...
About
 
May 12, 2008
Film Makers, Bands and Comedians Welcome on MySpace
About
 
May 12, 2008
Software Engineering for Ajax
WebReference.com
 
May 12, 2008
What is the Head Tag For?
About
 
May 11, 2008
Improving accessibility for motor impaired users
WebDevTips UK
 
May 11, 2008
10 ways to orientate users on your site
WebDevTips UK
 
Courtesy of moreover.com
 
Want to receive new articles via e-mail? Click here!
/Home /C#

Managing memory through C# 

  Views:    8305
  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