N
Neil
Hi,
If I have the code line "DateTime d1 = DateTime.Now;" and
look at d1 in the watch window, I thought I'd only see the
properties of the DateTime object variable d1.
However I seem to be seeing lots of other properties and
objects - can anyone explain what these are and where they
come from?
i.e. the watch window column headings are Name/Value/Type,
and I see some of the following (6 items given) -
+System.ValueType {System.DateTime} System.DateTime - an
object
+Date (9/9/2004) System.ValueType - an other object
DatePartDay 3 int
....
Day 9 int - this is a DateTime property, so I understand
where it has come from
DayOfWeek Thursday System.DayOfWeek
....
+DaysToMonth365 {lenght=13} int[] - yet another object
....
Can anyone shed any light on where these 5 out of the 6
above come from?
I also tried to declare a variable for DatePartDay
via "int i = d1.DatePartDay;" in code but get the compile
error "'System.DateTime.DatePartDay' is inaccessible due
to its protection level"
TIA, Neil.
If I have the code line "DateTime d1 = DateTime.Now;" and
look at d1 in the watch window, I thought I'd only see the
properties of the DateTime object variable d1.
However I seem to be seeing lots of other properties and
objects - can anyone explain what these are and where they
come from?
i.e. the watch window column headings are Name/Value/Type,
and I see some of the following (6 items given) -
+System.ValueType {System.DateTime} System.DateTime - an
object
+Date (9/9/2004) System.ValueType - an other object
DatePartDay 3 int
....
Day 9 int - this is a DateTime property, so I understand
where it has come from

DayOfWeek Thursday System.DayOfWeek
....
+DaysToMonth365 {lenght=13} int[] - yet another object
....
Can anyone shed any light on where these 5 out of the 6
above come from?
I also tried to declare a variable for DatePartDay
via "int i = d1.DatePartDay;" in code but get the compile
error "'System.DateTime.DatePartDay' is inaccessible due
to its protection level"
TIA, Neil.