Click here to Skip to main content
15,913,055 members
Home / Discussions / C#
   

C#

 
GeneralRe: Writing Device Drivers in C#? Pin
George L. Jackson24-Aug-07 15:25
George L. Jackson24-Aug-07 15:25 
GeneralRe: Writing Device Drivers in C#? Pin
Luc Pattyn24-Aug-07 15:32
sitebuilderLuc Pattyn24-Aug-07 15:32 
GeneralRe: Writing Device Drivers in C#? Pin
George L. Jackson24-Aug-07 15:41
George L. Jackson24-Aug-07 15:41 
GeneralRe: Writing Device Drivers in C#? Pin
mizitras25-Aug-07 2:29
mizitras25-Aug-07 2:29 
GeneralRe: Writing Device Drivers in C#? Pin
George L. Jackson25-Aug-07 2:56
George L. Jackson25-Aug-07 2:56 
GeneralRe: Writing Device Drivers in C#? Pin
George L. Jackson25-Aug-07 4:30
George L. Jackson25-Aug-07 4:30 
QuestionPlease explain me this small piece of code... Pin
james_dixon_200824-Aug-07 12:30
james_dixon_200824-Aug-07 12:30 
AnswerRe: Please explain me this small piece of code... Pin
Luc Pattyn24-Aug-07 13:15
sitebuilderLuc Pattyn24-Aug-07 13:15 
Hi,

what is the problem, don't you own a book on C#?
and can't you run the code?
then split the line in a couple of lines and look at intermediate values?

this is a normal assignment statement that modifies the content of b
by either setting one bit in it, or clearing one bit in it.

if value equals 1 it ORs b with 1<<pos which="" is="" bit="" number="" "pos"="" (zero-based="" counting
from="" right="" to="" left);="" otherwise="" it="" ands="" with="" the="" logical="" complement="" of="" same.

if="" you="" want="" do="" some="" real="" programming,="" i="" suggest="" hold="" your="" own="" spoon,
and="" feed="" yourself="" as="" much="" possible.

Smile | :) =""

<div="" class="ForumSig">Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


GeneralRe: Please explain me this small piece of code... Pin
George L. Jackson24-Aug-07 13:41
George L. Jackson24-Aug-07 13:41 
GeneralRe: Please explain me this small piece of code... Pin
PIEBALDconsult24-Aug-07 18:59
mvePIEBALDconsult24-Aug-07 18:59 
GeneralRe: Please explain me this small piece of code... Pin
George L. Jackson25-Aug-07 1:29
George L. Jackson25-Aug-07 1:29 
AnswerRe: Please explain me this small piece of code... Pin
George L. Jackson24-Aug-07 13:37
George L. Jackson24-Aug-07 13:37 
AnswerRe: Please explain me this small piece of code... Pin
PIEBALDconsult24-Aug-07 19:17
mvePIEBALDconsult24-Aug-07 19:17 
GeneralRe: Please explain me this small piece of code... Pin
George L. Jackson25-Aug-07 2:16
George L. Jackson25-Aug-07 2:16 
QuestionI need a full stop Pin
humayunlalzad24-Aug-07 11:12
humayunlalzad24-Aug-07 11:12 
AnswerRe: I need a full stop Pin
Michael Potter24-Aug-07 11:45
Michael Potter24-Aug-07 11:45 
AnswerRe: I need a full stop Pin
Christian Graus24-Aug-07 11:46
protectorChristian Graus24-Aug-07 11:46 
AnswerRe: I need a full stop Pin
PIEBALDconsult24-Aug-07 11:59
mvePIEBALDconsult24-Aug-07 11:59 
GeneralRe: I need a full stop Pin
Christian Graus24-Aug-07 12:01
protectorChristian Graus24-Aug-07 12:01 
AnswerRe: I need a full stop Pin
PhilipPainter27-Aug-07 11:48
PhilipPainter27-Aug-07 11:48 
QuestionNew to C# Programming Pin
invalidsyntax101024-Aug-07 9:53
invalidsyntax101024-Aug-07 9:53 
AnswerRe: New to C# Programming [modified] Pin
Dio2224-Aug-07 10:04
Dio2224-Aug-07 10:04 
AnswerRe: New to C# Programming Pin
PIEBALDconsult24-Aug-07 10:26
mvePIEBALDconsult24-Aug-07 10:26 
GeneralRe: New to C# Programming Pin
Christian Graus24-Aug-07 11:47
protectorChristian Graus24-Aug-07 11:47 
AnswerRe: New to C# Programming Pin
ghle24-Aug-07 11:04
ghle24-Aug-07 11:04 

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.