Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
QuestionC# Newbie. Need some help. Pin
suprsnipes18-Feb-10 1:15
suprsnipes18-Feb-10 1:15 
AnswerRe: C# Newbie. Need some help. Pin
Luc Pattyn18-Feb-10 1:27
sitebuilderLuc Pattyn18-Feb-10 1:27 
AnswerRe: C# Newbie. Need some help. Pin
kevinnicol18-Feb-10 3:09
kevinnicol18-Feb-10 3:09 
GeneralRe: C# Newbie. Need some help. Pin
harold aptroot18-Feb-10 3:32
harold aptroot18-Feb-10 3:32 
GeneralRe: C# Newbie. Need some help. Pin
Luc Pattyn18-Feb-10 3:32
sitebuilderLuc Pattyn18-Feb-10 3:32 
GeneralRe: C# Newbie. Need some help. Pin
suprsnipes2-Mar-10 17:50
suprsnipes2-Mar-10 17:50 
GeneralRe: C# Newbie. Need some help. Pin
Luc Pattyn3-Mar-10 1:32
sitebuilderLuc Pattyn3-Mar-10 1:32 
QuestionCustom Collections in C# Pin
arut jothi18-Feb-10 0:53
arut jothi18-Feb-10 0:53 
Hi,

I've a fair amount of knowledge on collections in C#, but most of the collections that I know of in C# are ordered, indexed or key-enumerated collections. I'm curious to know if there are any special collections that would allows us to have more that 2 fields and the corresponding row values? Please post information regarding this, in case you are aware of.

My requirement states that I have a list having following columns - Year#, Quarter#, QuarterStartDate & QuarterEndDate, with multiple rows under this (as shown below). I need to return the Year & Qtr for any given date.

Year# Quarter# QuarterStartDate QuarterEndDate
----- -------- ---------------- --------------
2010 Qtr1 01-01-2010 31-03-2010
2010 Qtr2 01-04-2010 30-06-2010
..... .... .......... ...........
..... .... .......... ...........

At present, I'm storing this data in a datatable and performing my validations. Is there a collection type in which I can store this data and iterate thru?

Appreciate your time and effort.

Thanks
Arut
AnswerRe: Custom Collections in C# Pin
Keith Barrow18-Feb-10 1:02
professionalKeith Barrow18-Feb-10 1:02 
GeneralRe: Custom Collections in C# Pin
Luc Pattyn18-Feb-10 1:31
sitebuilderLuc Pattyn18-Feb-10 1:31 
GeneralRe: Custom Collections in C# Pin
Keith Barrow18-Feb-10 1:34
professionalKeith Barrow18-Feb-10 1:34 
AnswerRe: Custom Collections in C# Pin
Luc Pattyn18-Feb-10 1:30
sitebuilderLuc Pattyn18-Feb-10 1:30 
QuestionHow to add Textbox Dynamically Pin
It_tech18-Feb-10 0:00
It_tech18-Feb-10 0:00 
AnswerRe: How to add Textbox Dynamically Pin
#realJSOP18-Feb-10 0:10
mve#realJSOP18-Feb-10 0:10 
GeneralRe: How to add Textbox Dynamically Pin
It_tech18-Feb-10 0:18
It_tech18-Feb-10 0:18 
Questionsimulate keypress by SendInput Pin
Tridip Bhattacharjee17-Feb-10 23:34
professionalTridip Bhattacharjee17-Feb-10 23:34 
QuestionSimple Cache shared in multiple application instances Pin
buchstaben17-Feb-10 23:31
buchstaben17-Feb-10 23:31 
AnswerRe: Simple Cache shared in multiple application instances Pin
Nicholas Butler18-Feb-10 0:30
sitebuilderNicholas Butler18-Feb-10 0:30 
AnswerRe: Simple Cache shared in multiple application instances Pin
Keith Barrow18-Feb-10 0:31
professionalKeith Barrow18-Feb-10 0:31 
GeneralRe: Simple Cache shared in multiple application instances Pin
buchstaben18-Feb-10 1:02
buchstaben18-Feb-10 1:02 
GeneralRe: Simple Cache shared in multiple application instances Pin
Keith Barrow18-Feb-10 1:07
professionalKeith Barrow18-Feb-10 1:07 
AnswerRe: Simple Cache shared in multiple application instances Pin
David Skelly18-Feb-10 2:12
David Skelly18-Feb-10 2:12 
GeneralRe: Simple Cache shared in multiple application instances Pin
buchstaben18-Feb-10 2:23
buchstaben18-Feb-10 2:23 
GeneralRe: Simple Cache shared in multiple application instances Pin
Keith Barrow18-Feb-10 2:49
professionalKeith Barrow18-Feb-10 2:49 
GeneralRe: Simple Cache shared in multiple application instances Pin
buchstaben18-Feb-10 2:55
buchstaben18-Feb-10 2:55 

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.