Click here to Skip to main content
16,005,236 members
Home / Discussions / C#
   

C#

 
GeneralRe: Bit Testing and operator unchecked() Pin
Jeffrey Walton14-Nov-07 5:41
Jeffrey Walton14-Nov-07 5:41 
GeneralRe: Bit Testing and operator unchecked() Pin
Luc Pattyn14-Nov-07 5:52
sitebuilderLuc Pattyn14-Nov-07 5:52 
GeneralRe: Bit Testing and operator unchecked() Pin
Judah Gabriel Himango14-Nov-07 5:54
sponsorJudah Gabriel Himango14-Nov-07 5:54 
GeneralRe: Bit Testing and operator unchecked() Pin
Jeffrey Walton14-Nov-07 6:09
Jeffrey Walton14-Nov-07 6:09 
GeneralRe: Bit Testing and operator unchecked() Pin
Guffa14-Nov-07 9:24
Guffa14-Nov-07 9:24 
GeneralRe: Bit Testing and operator unchecked() Pin
Jeffrey Walton14-Nov-07 6:05
Jeffrey Walton14-Nov-07 6:05 
GeneralRe: Bit Testing and operator unchecked() Pin
Jeffrey Walton14-Nov-07 6:08
Jeffrey Walton14-Nov-07 6:08 
GeneralRe: Bit Testing and operator unchecked() Pin
Luc Pattyn14-Nov-07 6:39
sitebuilderLuc Pattyn14-Nov-07 6:39 
Hi Jeff,

"collection" (lower-case!) is the general term for an object holding a lot of objects that
can be enumerated somehow; so arrays, ArrayLists, Lists, Dictionaries, all are collections.

Array, ArrayList containing numbers, and List<some_numeric_type> v all would support
v[2] = v[0] * v[1].


Jeffrey Walton wrote:
I used ArrayList due to a recomendation on the C# usenet group.


Either that recommendation dates back from the .NET 1.x times, or it is suboptimal.
Basically List<T> is an ArrayList that only allows you to add objects of type T, and
automatically returns a type T when you access its items.

Starting with VS2005 (=.NET 2.0) a new Win app automatically gets a
"using System.Collections.Generic" and no longer a "using System.Collections".

Smile | :)



Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google


AnswerRe: Bit Testing and operator unchecked() Pin
Guffa14-Nov-07 9:15
Guffa14-Nov-07 9:15 
GeneralRe: Bit Testing and operator unchecked() Pin
Jeffrey Walton14-Nov-07 11:33
Jeffrey Walton14-Nov-07 11:33 
AnswerBit Testing And operator~ Pin
Jeffrey Walton14-Nov-07 11:49
Jeffrey Walton14-Nov-07 11:49 
QuestionDataSet Design to database Pin
cecildt14-Nov-07 4:26
cecildt14-Nov-07 4:26 
AnswerRe: DataSet Design to database Pin
Colin Angus Mackay14-Nov-07 4:30
Colin Angus Mackay14-Nov-07 4:30 
GeneralRe: DataSet Design to database Pin
cecildt14-Nov-07 4:43
cecildt14-Nov-07 4:43 
GeneralRe: DataSet Design to database Pin
Pete O'Hanlon14-Nov-07 4:57
mvePete O'Hanlon14-Nov-07 4:57 
GeneralRe: DataSet Design to database Pin
Colin Angus Mackay14-Nov-07 5:24
Colin Angus Mackay14-Nov-07 5:24 
AnswerRe: DataSet Design to database Pin
Brady Kelly14-Nov-07 5:19
Brady Kelly14-Nov-07 5:19 
QuestionAbout ReportViewer in c# Pin
Davood Riazi14-Nov-07 3:27
Davood Riazi14-Nov-07 3:27 
AnswerRe: About ReportViewer in c# Pin
Justin Perez14-Nov-07 3:58
Justin Perez14-Nov-07 3:58 
GeneralRe: About ReportViewer in c# Pin
Davood Riazi14-Nov-07 4:35
Davood Riazi14-Nov-07 4:35 
GeneralRe: About ReportViewer in c# Pin
Justin Perez14-Nov-07 4:51
Justin Perez14-Nov-07 4:51 
GeneralRe: About ReportViewer in c# Pin
Justin Perez14-Nov-07 4:51
Justin Perez14-Nov-07 4:51 
QuestionDataSet XML Pin
jamesorm14-Nov-07 3:17
jamesorm14-Nov-07 3:17 
AnswerRe: DataSet XML Pin
Justin Perez14-Nov-07 4:43
Justin Perez14-Nov-07 4:43 
GeneralRe: DataSet XML Pin
jamesorm14-Nov-07 5:13
jamesorm14-Nov-07 5:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.