Click here to Skip to main content
15,908,931 members
Home / Discussions / C#
   

C#

 
QuestionXmlSerializer problem in .NET 2.0 Pin
Wjousts28-Apr-06 11:02
Wjousts28-Apr-06 11:02 
AnswerRe: XmlSerializer problem in .NET 2.0 Pin
Ravi Bhavnani28-Apr-06 11:44
professionalRavi Bhavnani28-Apr-06 11:44 
GeneralRe: XmlSerializer problem in .NET 2.0 Pin
S. Senthil Kumar30-Apr-06 3:44
S. Senthil Kumar30-Apr-06 3:44 
GeneralRe: XmlSerializer problem in .NET 2.0 Pin
Ravi Bhavnani30-Apr-06 3:50
professionalRavi Bhavnani30-Apr-06 3:50 
GeneralRe: XmlSerializer problem in .NET 2.0 Pin
Wjousts1-May-06 4:05
Wjousts1-May-06 4:05 
AnswerRe: XmlSerializer problem in .NET 2.0 Pin
S. Senthil Kumar30-Apr-06 3:44
S. Senthil Kumar30-Apr-06 3:44 
GeneralRe: XmlSerializer problem in .NET 2.0 Pin
Wjousts1-May-06 4:07
Wjousts1-May-06 4:07 
QuestionStill random? Pin
Jon Sagara28-Apr-06 10:38
Jon Sagara28-Apr-06 10:38 
AnswerRe: Still random? Pin
Graham Nimbley28-Apr-06 11:57
Graham Nimbley28-Apr-06 11:57 
GeneralRe: Still random? Pin
Jon Sagara28-Apr-06 12:24
Jon Sagara28-Apr-06 12:24 
AnswerRe: Still random? Pin
Robert Rohde28-Apr-06 22:27
Robert Rohde28-Apr-06 22:27 
AnswerRe: Still random? Pin
Guffa28-Apr-06 23:35
Guffa28-Apr-06 23:35 
AnswerRe: Still random? Pin
leppie29-Apr-06 1:08
leppie29-Apr-06 1:08 
QuestionXML and XSL transform in C# Pin
PrashantJ28-Apr-06 9:29
PrashantJ28-Apr-06 9:29 
AnswerRe: XML and XSL transform in C# Pin
Ravi Bhavnani28-Apr-06 9:38
professionalRavi Bhavnani28-Apr-06 9:38 
QuestionFile.Copy Question Pin
cmarcus28-Apr-06 8:25
cmarcus28-Apr-06 8:25 
AnswerRe: File.Copy Question Pin
Graham Nimbley28-Apr-06 11:55
Graham Nimbley28-Apr-06 11:55 
Questionvoice recording Pin
ghost_cis28-Apr-06 6:25
ghost_cis28-Apr-06 6:25 
AnswerRe: voice recording Pin
Judah Gabriel Himango28-Apr-06 6:33
sponsorJudah Gabriel Himango28-Apr-06 6:33 
GeneralRe: voice recording Pin
ghost_cis28-Apr-06 7:00
ghost_cis28-Apr-06 7:00 
GeneralRe: voice recording Pin
Judah Gabriel Himango28-Apr-06 8:16
sponsorJudah Gabriel Himango28-Apr-06 8:16 
QuestionCan you the DateTime class to always show and do things in Universal Time? Pin
Rafferty Uy28-Apr-06 6:08
Rafferty Uy28-Apr-06 6:08 
AnswerRe: Can you the DateTime class to always show and do things in Universal Time? Pin
Dustin Metzgar28-Apr-06 6:41
Dustin Metzgar28-Apr-06 6:41 
GeneralRe: Can you the DateTime class to always show and do things in Universal Time? Pin
Rafferty Uy28-Apr-06 6:52
Rafferty Uy28-Apr-06 6:52 
AnswerRe: Can you the DateTime class to always show and do things in Universal Time? Pin
Dustin Metzgar28-Apr-06 9:42
Dustin Metzgar28-Apr-06 9:42 
Good questions. Unspecified is what it will most likely be when you parse. But you can also use the SpecifyKind method.
<br />
DateTime dt = DateTime.SpecifyKind(DateTime.Parse("some string"), DateTimeKind.Local)<br />


Comparison is a tricky one as well. DateTime has an Int64 buried underneath it that represents the ticks that identify the time. There were two bits left over of the 64 that were not used, so in .Net 2.0 they decided to use them for the DateTimeKind enum. I imagine an equals should check the kind since it will probably just compare the two integers. Compare might do this as well. MSDN just tells you to make sure they're both in the same time zone. Smile | :)

www.logifusion.com

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.