Laure Posted October 27, 2006 Posted October 27, 2006 (edited) So, I'm in a bit of a lull at work so I'm reading up on C#. (They keep telling me that we'll eventually transition away from C++, so why not get paid while updating my skills?) Anyway, here's an example code snippet I ran across:public class Tester{ static void Main() { // create a new list box and initialize ListBoxTest lbt = new ListBoxTest("Hello", "World"); // add a few strings lbt.Add("Who"); lbt.Add("Is"); lbt.Add("John"); lbt.Add("Galt"); // test the access string subst = "Universe"; lbt[1] = subst; // access all the strings for (int i = 0;i<lbt.GetNumEntries();i++) { Console.WriteLine("lbt[{0}]: {1}",i,lbt); } }}(from Microsoft's MSDN Magazine)...just had to share! Edited October 27, 2006 by Laure
Kat Posted October 28, 2006 Posted October 28, 2006 Coolness! Ayn Rand teaches computer programming for Microsoft...Thanks for sharing that. Sometimes you'll spot Ayn Rand references in the oddest of places.Kat
Michael Stuart Kelly Posted November 1, 2006 Posted November 1, 2006 Laure,I saw this the other day and didn't comment, but I think it is really cool.Michael
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now