hi everyone,
i am relativley new to C# (i have a bit of background in java and vb.net), and there is a keyword called Shared in vb.net that i have used in several of my classes in order to use a method or a function in my project.
is 'internal' in C# the equivalent?
thanks in advance for any responses
adam
Loading
Adam GrandePosted Mar 14, 2007, 7:25 PM
thanks for your feedback so far, i know its going to be of great help. i will definitely use the collections you suggested. i have dabbled in hashtables before, as well as dictionaries (of which i am a big fan... its basically the perfect list! :P) in vb.net, and i will start using the ArrayList from this point forward.
thanks very much for everything you have said so far
regards
adam
Scott LyslePosted Mar 14, 2007, 2:12 PM
Instead of using an array; if you want a resizable (dynamic) array look at your options with the collections. If you replace your arrays with arraylists, for example, you will not have to contend with redimensioning the arrays as you add or remove items from that array (they are dynamic by definition).
By importing System.Collections into your project, you can access and control the collections. Depending upon what you want to do, you might also look at Hashtables, SortedLists, etc. With the ArrayList you have a dynamic array that does not require a key value; other collection types use key-value pairs.
Adam GrandePosted Mar 14, 2007, 2:01 AM
cheers
adam
Adam GrandePosted Mar 14, 2007, 1:52 AM
regards
adam
Scott LyslePosted Mar 14, 2007, 12:44 AM