Пример #1
0
 public ExFormatProvider()
 {
     defaultFormatProvider = System.Globalization.CultureInfo.InvariantCulture;
 }
Пример #2
0
 public DateTimeFormat(string formatString, System.IFormatProvider formatProvider)
 {
 }
 public virtual string ToString(System.IFormatProvider provider)
 {
 }
Пример #4
0
 object System.IConvertible.ToType(System.Type type, System.IFormatProvider provider)
 => system.Convert.DefaultToType((System.IConvertible) this, type, provider);
 public static System.Globalization.DateTimeFormatInfo GetInstance(System.IFormatProvider provider)
 {
     throw null;
 }
Пример #6
0
 public float ToSingle(System.IFormatProvider provider)
 {
     return(System.Convert.ToSingle(LiteralValue, provider));
 }
Пример #7
0
 System.Decimal System.IConvertible.ToDecimal(System.IFormatProvider provider)
 => System.Convert.ToDecimal(Get());
Пример #8
0
 public static System.Numerics.BigInteger Parse(string value, System.IFormatProvider provider)
 {
     return(default(System.Numerics.BigInteger));
 }
Пример #9
0
 public static bool TryParse(string value, System.Globalization.NumberStyles style, System.IFormatProvider provider, out System.Numerics.BigInteger result)
 {
     result = default(System.Numerics.BigInteger); return(default(bool));
 }
Пример #10
0
 public ulong ToUInt64(System.IFormatProvider provider)
 {
     return(System.Convert.ToUInt64(LiteralValue, provider));
 }
Пример #11
0
 public static System.Numerics.BigInteger Parse(string value, System.Globalization.NumberStyles style, System.IFormatProvider provider)
 {
     return(default(System.Numerics.BigInteger));
 }
Пример #12
0
 public uint ToUInt32(System.IFormatProvider provider)
 {
     return(System.Convert.ToUInt32(LiteralValue, provider));
 }
Пример #13
0
 public ushort ToUInt16(System.IFormatProvider provider)
 {
     return(System.Convert.ToUInt16(LiteralValue, provider));
 }
Пример #14
0
 public string ToString(System.IFormatProvider provider)
 {
     return(System.Convert.ToString(LiteralValue, provider));
 }
Пример #15
0
 //
 // Summary:
 //     Converts the specified string representation of a date and time to its DeltaSpace.DateTimeOffset
 //     equivalent using the specified formats, culture-specific format information,
 //     and style. The format of the string representation must match one of the
 //     specified formats exactly.
 //
 // Parameters:
 //   input:
 //     A string that contains a date and time to convert.
 //
 //   formats:
 //     An array of format specifiers that define the expected formats of input.
 //
 //   formatProvider:
 //     An object that supplies culture-specific formatting information about input.
 //
 //   styles:
 //     A bitwise combination of enumeration values that indicates the permitted
 //     format of input.
 //
 // Returns:
 //     An object that is equivalent to the date and time that is contained in the
 //     input parameter, as specified by the formats, formatProvider, and styles
 //     parameters.
 //
 // Exceptions:
 //   System.ArgumentException:
 //     The offset is greater than 14 hours or less than -14 hours.-or-styles includes
 //     an unsupported value.-or-The styles parameter contains System.Globalization.DateTimeStyles
 //     values that cannot be used together.
 //
 //   System.ArgumentNullException:
 //     input is null.
 //
 //   System.FormatException:
 //     input is an empty string ("").-or-input does not contain a valid string representation
 //     of a date and time.-or-No element of formats contains a valid format specifier.-or-The
 //     hour component and the AM/PM designator in input do not agree.
 public static DateTimeOffset ParseExact(
                                         string          input, 
                                         string[]        formats, 
                                         IFormatProvider formatProvider,
                                         DateTimeStyles  styles
                                     )
 {
     return new DateTimeOffset(SystemDateTimeOffset.ParseExact(input, formats, formatProvider, styles));
 }
Пример #16
0
 public string ToString(string format, System.IFormatProvider provider)
 {
     return(default(string));
 }
Пример #17
0
 public string ToString(
                                         string          format, 
                                         IFormatProvider formatProvider
                                     )
 {
     return this.value.ToString(format, formatProvider);
 }
Пример #18
0
 public void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args)
 {
 }
Пример #19
0
 double System.IConvertible.ToDouble(System.IFormatProvider provider)
 => System.Convert.ToDouble(Get());
Пример #20
0
 public void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args)
 {
 }
Пример #21
0
 System.DateTime System.IConvertible.ToDateTime(System.IFormatProvider provider)
 => throw new System.InvalidCastException();
Пример #22
0
 bool System.IConvertible.ToBoolean(System.IFormatProvider provider)
 => System.Convert.ToBoolean(Get());
Пример #23
0
 public string ToString(System.IFormatProvider provider) => ToString();
Пример #24
0
 char System.IConvertible.ToChar(System.IFormatProvider provider)
 => System.Convert.ToChar(Get());
Пример #25
0
 public static System.Globalization.NumberFormatInfo GetInstance(System.IFormatProvider formatProvider)
 {
     throw null;
 }
Пример #26
0
 byte System.IConvertible.ToByte(System.IFormatProvider provider)
 => System.Convert.ToByte(Get());
Пример #27
0
 /// <summary>
 /// Converts the <see cref="sourceValue" /> parameter to the <see cref="destinationType" /> parameter using <see cref="formatProvider"
 /// /> and <see cref="ignoreCase" />
 /// </summary>
 /// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param>
 /// <param name="destinationType">the <see cref="System.Type" /> to convert to</param>
 /// <param name="formatProvider">not used by this TypeConverter.</param>
 /// <param name="ignoreCase">when set to <c>true</c>, will ignore the case when converting.</param>
 /// <returns>
 /// an instance of <see cref="VmNic" />, or <c>null</c> if there is no suitable conversion.
 /// </returns>
 public override object ConvertFrom(object sourceValue, System.Type destinationType, System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
Пример #28
0
 ushort System.IConvertible.ToUInt16(System.IFormatProvider provider)
 => System.Convert.ToUInt16(Get());
Пример #29
0
 public StringWriter(System.IFormatProvider formatProvider)
 {
 }
Пример #30
0
 uint System.IConvertible.ToUInt32(System.IFormatProvider provider)
 => System.Convert.ToUInt32(Get());
Пример #31
0
 //
 // Summary:
 //     Converts the specified string representation of a date and time to its DeltaSpace.DateTimeOffset
 //     equivalent using the specified format and culture-specific format information.
 //     The format of the string representation must match the specified format exactly.
 //
 // Parameters:
 //   input:
 //     A string that contains a date and time to convert.
 //
 //   format:
 //     A format specifier that defines the expected format of input.
 //
 //   formatProvider:
 //     An object that supplies culture-specific formatting information about input.
 //
 // Returns:
 //     An object that is equivalent to the date and time that is contained in input
 //     as specified by format and formatProvider.
 //
 // Exceptions:
 //   System.ArgumentException:
 //     The offset is greater than 14 hours or less than -14 hours.
 //
 //   System.ArgumentNullException:
 //     input is null.-or-format is null.
 //
 //   System.FormatException:
 //     input is an empty string ("").-or-input does not contain a valid string representation
 //     of a date and time.-or-format is an empty string.-or-The hour component and
 //     the AM/PM designator in input do not agree.
 public static DateTimeOffset ParseExact(
                                         string          input,
                                         string          format, 
                                         IFormatProvider formatProvider
                                     )
 {
     return new DateTimeOffset(SystemDateTimeOffset.ParseExact(input, format, formatProvider));
 }
Пример #32
0
 ulong System.IConvertible.ToUInt64(System.IFormatProvider provider)
 => System.Convert.ToUInt64(Get());
Пример #33
0
 //
 // Summary:
 //     Converts the specified string representation of a date and time to its DeltaSpace.DateTimeOffset
 //     equivalent using the specified array of formats, culture-specific format
 //     information, and style. The format of the string representation must match
 //     one of the specified formats exactly.
 //
 // Parameters:
 //   input:
 //     A string that contains a date and time to convert.
 //
 //   formats:
 //     An array that defines the expected formats of input.
 //
 //   formatProvider:
 //     An object that supplies culture-specific formatting information about input.
 //
 //   styles:
 //     A bitwise combination of enumeration values that indicates the permitted
 //     format of input. A typical value to specify is None.
 //
 //   result:
 //     When the method returns, contains the DeltaSpace.DateTimeOffset equivalent to
 //     the date and time of input, if the conversion succeeded, or DeltaSpace.DateTimeOffset.MinValue,
 //     if the conversion failed. The conversion fails if the input does not contain
 //     a valid string representation of a date and time, or does not contain the
 //     date and time in the expected format defined by format, or if formats is
 //     null. This parameter is passed uninitialized.
 //
 // Returns:
 //     true if the input parameter is successfully converted; otherwise, false.
 //
 // Exceptions:
 //   System.ArgumentException:
 //     styles includes an undefined System.Globalization.DateTimeStyles value.-or-System.Globalization.DateTimeStyles.NoCurrentDateDefault
 //     is not supported.-or-styles includes mutually exclusive System.Globalization.DateTimeStyles
 //     values.
 public static bool TryParseExact(
                                         string          input, 
                                         string[]        formats, 
                                         IFormatProvider formatProvider, 
                                         DateTimeStyles  styles, 
                                     out DateTimeOffset  result
                                     )
 {
     SystemDateTimeOffset    systemResult;
     bool                    success         = SystemDateTimeOffset.TryParseExact(input, formats, formatProvider, styles, out systemResult);
     result  = new DateTimeOffset(systemResult);
     return success;
 }
Пример #34
0
 float System.IConvertible.ToSingle(System.IFormatProvider provider)
 => System.Convert.ToSingle(Get());
Пример #35
0
 TextWriterMulti SetFormatProvider(System.IFormatProvider value)
 {
     this.formatProvider = value;
     return this;
 }
Пример #36
0
 public sbyte ToSByte(System.IFormatProvider provider)
 {
     return(System.Convert.ToSByte(LiteralValue, provider));
 }