System.Xml.Serialization.XmlSerializationReader.ToDateTime C# (CSharp) Method

ToDateTime() protected static method

protected static ToDateTime ( string value ) : DateTime
value string
return DateTime
        protected static DateTime ToDateTime(string value)
        {
            return XmlCustomFormatter.ToDateTime(value);
        }

Usage Example

Example #1
0
 internal object Read_dateTime()
 {
     base.Reader.MoveToContent();
     if (base.Reader.NodeType == XmlNodeType.Element)
     {
         if ((base.Reader.LocalName != this.id10_dateTime) || (base.Reader.NamespaceURI != this.id2_Item))
         {
             throw base.CreateUnknownNodeException();
         }
         return(XmlSerializationReader.ToDateTime(base.Reader.ReadElementString()));
     }
     base.UnknownNode(null);
     return(null);
 }