Click here to Skip to main content
15,912,977 members
Home / Discussions / C#
   

C#

 
QuestionHow do I capturing the ouput of the external appl Pin
Eyungwah13-Mar-07 13:22
Eyungwah13-Mar-07 13:22 
AnswerRe: How do I capturing the ouput of the external appl Pin
Stefan Troschuetz13-Mar-07 23:10
Stefan Troschuetz13-Mar-07 23:10 
QuestionCustom object as datasource to datagrid Pin
chequis13-Mar-07 13:19
chequis13-Mar-07 13:19 
Questionhow i can make color to active line in richtextBox ? Pin
Ahmed R El Bohoty13-Mar-07 13:11
Ahmed R El Bohoty13-Mar-07 13:11 
AnswerRe: how i can make color to active line in richtextBox ? Pin
TeddyLiu13-Mar-07 15:16
TeddyLiu13-Mar-07 15:16 
GeneralRe: how i can make color to active line in richtextBox ? Pin
hiremath7113-Mar-07 18:37
hiremath7113-Mar-07 18:37 
GeneralRe: how i can make color to active line in richtextBox ? Pin
Ahmed R El Bohoty14-Mar-07 10:16
Ahmed R El Bohoty14-Mar-07 10:16 
QuestionLooking for a good way to get values from a byte array. Pin
dino209413-Mar-07 11:45
dino209413-Mar-07 11:45 
I have a byte array that contains all kinds of info.
Like

Bits Purpose
7-4 Color
...
15-9 Length
...

If this was my class

<br />
class BasePacket{<br />
  private byte[] data;//Stores the bits<br />
....<br />
....<br />
}<br />


I like to be able do

<br />
<br />
BasePacket x = .....;<br />
x.color = 5;<br />
x.length = 3;<br />
int y = x.color;<br />
...<br />
...<br />


I know how to write this with &,|,<<, sets and gets but
I was wondering if there was a slicker solution.

I'd like to define each property on one line.



//Available bits

color , 4 , 4
length, 9, 7
<property name=""> , <bits start=""> , <bit length="">

Is this possible? I just looking for ideas not necessarily actual code.

Thanks for this great forum and its members.
AnswerRe: Looking for a good way to get values from a byte array. Pin
CPallini13-Mar-07 12:22
mveCPallini13-Mar-07 12:22 
AnswerRe: how can I convert UPPER case to lower case? Pin
Edmundisme13-Mar-07 11:23
Edmundisme13-Mar-07 11:23 
GeneralRe: how can I convert UPPER case to lower case? Pin
Khoramdin13-Mar-07 11:24
Khoramdin13-Mar-07 11:24 
GeneralRe: how can I convert UPPER case to lower case? Pin
Guffa13-Mar-07 20:04
Guffa13-Mar-07 20:04 
JokeModified.Re: how can I convert UPPER case to lower case? Pin
CPallini13-Mar-07 12:24
mveCPallini13-Mar-07 12:24 
GeneralRe: how can I convert UPPER case to lower case? Pin
Edmundisme13-Mar-07 12:28
Edmundisme13-Mar-07 12:28 
QuestionImage recognition Pin
sharpiesharpie13-Mar-07 10:41
sharpiesharpie13-Mar-07 10:41 
JokeRe: Image recognition Pin
CPallini13-Mar-07 12:31
mveCPallini13-Mar-07 12:31 
AnswerRe: Image recognition Pin
mav.northwind13-Mar-07 20:24
mav.northwind13-Mar-07 20:24 
Questionprocesses Pin
quarinteen13-Mar-07 8:35
quarinteen13-Mar-07 8:35 
AnswerRe: processes Pin
Ennis Ray Lynch, Jr.13-Mar-07 9:47
Ennis Ray Lynch, Jr.13-Mar-07 9:47 
GeneralRe: processes Pin
quarinteen13-Mar-07 9:58
quarinteen13-Mar-07 9:58 
AnswerRe: processes Pin
Martin#13-Mar-07 20:24
Martin#13-Mar-07 20:24 
GeneralRe: processes Pin
quarinteen14-Mar-07 2:40
quarinteen14-Mar-07 2:40 
AnswerRe: processes Pin
Martin#14-Mar-07 4:36
Martin#14-Mar-07 4:36 
Questionminimum TimeSpan Pin
spin vector13-Mar-07 8:25
spin vector13-Mar-07 8:25 
AnswerRe: minimum TimeSpan Pin
- Pascal -13-Mar-07 12:05
- Pascal -13-Mar-07 12:05 

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.