TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
kyle_hankinson
NA
58
0
Structure Arrays?
Dec 12 2004 5:14 PM
In C I could create array's of structures and hardcode them. Sample code would be: struct { char letter; int value; } colors[20] = { { 'r', 0xFF0000 }, { 'g', 0x00FF00 }, { 'b', 0x0000FF } }; Just wondering how something like this would be done in C#? I know structures can be done in C# but I would have no clue how to hardcode them. Thanks again for any help.
Reply
Answers (
2
)
VB.net to C#...
Why difference in behaviour of 'new' outside and inside unsafe block?