Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
ZTE MF283U 4G Unlocked Router (Used)
ayanthamaxi
Updated:
Sunday at 8:26 PM
ලංකාවේ හොඳම උපකාරක පන්ති සහ ගුරුවරුන් එකම තැනකින් - TopTuition.lk
dulithapathum
Updated:
Saturday at 8:07 AM
Colombo
RidhMathraa ’26 🎶✨
Tmadhusanka
Updated:
Wednesday at 11:58 PM
Ad icon
Colombo
PXN V10 Pro Direct Drive Racing Wheel (Under Warranty)
Abdur Rahman
Updated:
Wednesday at 10:23 PM
Ad icon
USDT ණය සේවාව - USDT Loan Service
පුරවැසියා
Updated:
Wednesday at 4:54 PM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
C# Programing FAQ - Post here
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="asachan" data-source="post: 4490366" data-attributes="member: 189916"><p></p><p></p><p></p><p>Macho there is a better option in C# than stack </p><p>It's List<> genaric type. </p><p>U can create anytupe of list using this</p><p></p><p><span style="font-family: 'Courier New'">List<string> lst = new List<string>;</span></p><p><span style="font-family: 'Courier New'"></span></p><p>and to add the records </p><p></p><p><span style="font-family: 'Courier New'">lst.Add(<what ever string u have>);</span></p><p></p><p>to loop through the list</p><p></p><p><span style="font-family: 'Courier New'">foreach(string str in lst){</span></p><p><span style="font-family: 'Courier New'"> // do anything u want with the str . it's a indexed string on the list. it's FIFO </span></p><p><span style="font-family: 'Courier New'">}</span></p><p><span style="font-family: 'Courier New'"></span></p></blockquote><p></p>
[QUOTE="asachan, post: 4490366, member: 189916"] [COLOR=Blue] [/COLOR] Macho there is a better option in C# than stack It's List<> genaric type. U can create anytupe of list using this [FONT=Courier New]List<string> lst = new List<string>; [/FONT] and to add the records [FONT=Courier New]lst.Add(<what ever string u have>);[/FONT] to loop through the list [FONT=Courier New]foreach(string str in lst){ // do anything u want with the str . it's a indexed string on the list. it's FIFO } [/FONT] [/QUOTE]
Insert quotes…
Verification
Hath warak paha keeyada? (hatha wadikireema paha)
Post reply
Top
Bottom