Click here to Skip to main content
15,881,852 members
Home / Discussions / C#
   

C#

 
GeneralRe: what gets passed to what class?? Pin
stephen.darling20-Sep-10 21:29
stephen.darling20-Sep-10 21:29 
AnswerRe: what gets passed to what class?? Pin
OriginalGriff20-Sep-10 21:43
mveOriginalGriff20-Sep-10 21:43 
GeneralRe: what gets passed to what class?? Pin
stephen.darling20-Sep-10 21:48
stephen.darling20-Sep-10 21:48 
GeneralRe: what gets passed to what class?? [Modified] Pin
OriginalGriff20-Sep-10 21:59
mveOriginalGriff20-Sep-10 21:59 
GeneralRe: what gets passed to what class?? [Modified] Pin
stephen.darling20-Sep-10 22:07
stephen.darling20-Sep-10 22:07 
GeneralRe: what gets passed to what class?? [Modified] Pin
OriginalGriff21-Sep-10 2:10
mveOriginalGriff21-Sep-10 2:10 
QuestionFinding gap between Date ranges Pin
DJ24520-Sep-10 19:22
DJ24520-Sep-10 19:22 
AnswerRe: Finding gap between Date ranges Pin
Łukasz Nowakowski20-Sep-10 21:35
Łukasz Nowakowski20-Sep-10 21:35 
And how are you doing it right now?
I would create a dictionary (Dictionary<DateTime, bool> dates) and fill it with all dates, that are available (in your example I would put there all dates between 1-Jan-2010 and 18-Jan-2010). Next there would be a loop over all ranges, and in this loop second loop over all dates in range. And I would set dates[currentDate] to true (where currentDate is date, that is pointed by double loop.
After those loops you have a dictionary, where false is set on dates, that aren't in any of the ranges.
Hope you get the idea.
Don't forget to rate answer, that helped you. It will allow other people find their answers faster.

GeneralRe: Finding gap between Date ranges Pin
DJ24520-Sep-10 22:11
DJ24520-Sep-10 22:11 
GeneralRe: Finding gap between Date ranges Pin
Łukasz Nowakowski20-Sep-10 22:19
Łukasz Nowakowski20-Sep-10 22:19 
AnswerRe: Finding gap between Date ranges Pin
DJ24520-Sep-10 23:16
DJ24520-Sep-10 23:16 
QuestionLinq question - what wrong with my code ? Pin
Yanshof20-Sep-10 19:13
Yanshof20-Sep-10 19:13 
AnswerRe: Linq question - what wrong with my code ? [modified] Pin
Pete O'Hanlon20-Sep-10 22:13
mvePete O'Hanlon20-Sep-10 22:13 
AnswerRe: Linq question - what wrong with my code ? Pin
PIEBALDconsult21-Sep-10 3:13
mvePIEBALDconsult21-Sep-10 3:13 
QuestionAdd row to DataGridView [Solved] Pin
Deepak.Prahlad20-Sep-10 18:31
Deepak.Prahlad20-Sep-10 18:31 
Questiongraph not drawing properly? Pin
stephen.darling20-Sep-10 15:54
stephen.darling20-Sep-10 15:54 
AnswerRe: graph not drawing properly? Pin
Luc Pattyn20-Sep-10 16:33
sitebuilderLuc Pattyn20-Sep-10 16:33 
Questionwhy they don't show up Pin
neverpleat20-Sep-10 14:50
neverpleat20-Sep-10 14:50 
AnswerRe: why they don't show up Pin
Luc Pattyn20-Sep-10 15:02
sitebuilderLuc Pattyn20-Sep-10 15:02 
GeneralRe: why they don't show up Pin
neverpleat20-Sep-10 15:20
neverpleat20-Sep-10 15:20 
GeneralRe: why they don't show up Pin
Luc Pattyn20-Sep-10 15:36
sitebuilderLuc Pattyn20-Sep-10 15:36 
GeneralRe: why they don't show up [modified] Pin
neverpleat20-Sep-10 17:17
neverpleat20-Sep-10 17:17 
AnswerRe: why they don't show up Pin
Abhinav S20-Sep-10 18:17
Abhinav S20-Sep-10 18:17 
AnswerRe: why they don't show up Pin
phil.o21-Sep-10 0:08
professionalphil.o21-Sep-10 0:08 
Questionwhere to manage my picture box control Pin
Member 745530620-Sep-10 10:53
Member 745530620-Sep-10 10:53 

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.