blah blah blah is here! blah blah » Close

1
votes
1 answers

C# 4.0 data types "nested" structs

Hi, I decided to do some experimenting with regards to "Nested" structs. my questions are : 1. is it good to use Nested Structs ? 2. is there a more effecient way to do this ? 3. is there anyway to optimize what I've curren ...

1
votes
3 answers

Custom "Data Types" using C# 4.0 ( structs )

I decided to do some experimenting so I wrote a "Data Type" for cellphone numbers. the data type stores the area code as well as as a 9 digit cellphone number ( the zero is ignored ) I am basically looking for advise on how to ...

1
votes
3 answers

Data Structs - why does C# act differently ?

I have the following struct in C++ which works perfectly. I have used a binary tree struct for this example. [code] struct node { int index; node *left; node *right; }; [/code] now I create this in C# [code] ...

1
votes
1 answers

C struct size_of

eeboy
499

I have the following: [code] struct _triggerSegment{ char cSegmentSource; unsigned int uiSegmentTime; unsigned int uiSegmentWidth; unsigned int uiSegmentWindow; }; struct _triggerEntry{ char cGuid[16]; char cName[32]; ...

Feedback