Stack<t>: simple .net program to show working of stack collection. The System.Collections.Generic namespace contains interfaces and classes that define generic collections, which allow users to create strongly typed collections that provide better type safety and performance than non-generic strongly typed collections. An introduction to DOT NET: Generic collection: Stack Generic means it support specific data type (int,float string..etc) Stack is LIFO Last in first out manner. Here stack is used to save data and retrieved it in LIFO manner. You can run program and see the working procedure of it. 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 stackgenriccollection { public partial class Form1 : Form { ...
Technology, SEO, Lifestyle and Crypto updates.