System.Xml.XmlDictionaryReader.XmlWrappedReader.ReadContentAsDateTime C# (CSharp) Méthode

ReadContentAsDateTime() public méthode

public ReadContentAsDateTime ( ) : System.DateTime
Résultat System.DateTime
            public override DateTime ReadContentAsDateTime()
            {
                try
                {
                    return _reader.ReadContentAsDateTimeOffset().DateTime;
                }
                catch (ArgumentException exception)
                {
                    throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException("DateTime", exception));
                }
                catch (FormatException exception)
                {
                    throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException("DateTime", exception));
                }
                catch (OverflowException exception)
                {
                    throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException("DateTime", exception));
                }
            }