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

C#

 
QuestionBit Testing and operator unchecked() Pin
Jeffrey Walton14-Nov-07 4:35
Jeffrey Walton14-Nov-07 4:35 
AnswerRe: Bit Testing and operator unchecked() Pin
Luc Pattyn14-Nov-07 5:08
sitebuilderLuc Pattyn14-Nov-07 5:08 
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 
Hi Luc,

I hope it's not bad form to spawn a response for each question... I think it keeps dialogue exchange manageable.

I am not sure what type it is you originally put into the ArrayList, I will assume the item type is byte.

I used ArrayList due to a recomendation on the C# usenet group. I despise the concept of ArrayList of Objects for numbers (integers, shorts longs, etc)... I don't like the casting. I understand one may have an array of type Employee, where this makes sense.
For a 32 bit integer or 8 bit byte, this is offensive to me. What I want is a vector of bytes - no casting, perform math on the elements, etc. If C# wants to call it a collection, that is fine. But don't take away semantics of primitive operations such as v[2] = v[0] * v[1].

Luc Pattyn wrote:
Furthermore, you could use a generic collection (available since .NET 2.0), in this case
a List<byte> instead of an ArrayList, although the difference would be minor here.

I'd like to try use this... Where does one find it? I did not see it in System.Collection. I imagine it is elsewhere? I am using VS 2005. I have .Net 1.1 and 2.0 Configuration Wizards, so I imagine the runtimes are installed.

Jeff
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 
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 

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.