public ExFormatProvider() { defaultFormatProvider = System.Globalization.CultureInfo.InvariantCulture; }
public DateTimeFormat(string formatString, System.IFormatProvider formatProvider) { }
public virtual string ToString(System.IFormatProvider provider) { }
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; }
public float ToSingle(System.IFormatProvider provider) { return(System.Convert.ToSingle(LiteralValue, provider)); }
System.Decimal System.IConvertible.ToDecimal(System.IFormatProvider provider) => System.Convert.ToDecimal(Get());
public static System.Numerics.BigInteger Parse(string value, System.IFormatProvider provider) { return(default(System.Numerics.BigInteger)); }
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)); }
public ulong ToUInt64(System.IFormatProvider provider) { return(System.Convert.ToUInt64(LiteralValue, provider)); }
public static System.Numerics.BigInteger Parse(string value, System.Globalization.NumberStyles style, System.IFormatProvider provider) { return(default(System.Numerics.BigInteger)); }
public uint ToUInt32(System.IFormatProvider provider) { return(System.Convert.ToUInt32(LiteralValue, provider)); }
public ushort ToUInt16(System.IFormatProvider provider) { return(System.Convert.ToUInt16(LiteralValue, provider)); }
public string ToString(System.IFormatProvider provider) { return(System.Convert.ToString(LiteralValue, provider)); }
// // 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)); }
public string ToString(string format, System.IFormatProvider provider) { return(default(string)); }
public string ToString( string format, IFormatProvider formatProvider ) { return this.value.ToString(format, formatProvider); }
public void TraceFormat(System.IFormatProvider formatProvider, string format, params object[] args) { }
double System.IConvertible.ToDouble(System.IFormatProvider provider) => System.Convert.ToDouble(Get());
public void WarnFormat(System.Exception exception, System.IFormatProvider formatProvider, string format, params object[] args) { }
System.DateTime System.IConvertible.ToDateTime(System.IFormatProvider provider) => throw new System.InvalidCastException();
bool System.IConvertible.ToBoolean(System.IFormatProvider provider) => System.Convert.ToBoolean(Get());
public string ToString(System.IFormatProvider provider) => ToString();
char System.IConvertible.ToChar(System.IFormatProvider provider) => System.Convert.ToChar(Get());
public static System.Globalization.NumberFormatInfo GetInstance(System.IFormatProvider formatProvider) { throw null; }
byte System.IConvertible.ToByte(System.IFormatProvider provider) => System.Convert.ToByte(Get());
/// <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);
ushort System.IConvertible.ToUInt16(System.IFormatProvider provider) => System.Convert.ToUInt16(Get());
public StringWriter(System.IFormatProvider formatProvider) { }
uint System.IConvertible.ToUInt32(System.IFormatProvider provider) => System.Convert.ToUInt32(Get());
// // 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)); }
ulong System.IConvertible.ToUInt64(System.IFormatProvider provider) => System.Convert.ToUInt64(Get());
// // 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; }
float System.IConvertible.ToSingle(System.IFormatProvider provider) => System.Convert.ToSingle(Get());
TextWriterMulti SetFormatProvider(System.IFormatProvider value) { this.formatProvider = value; return this; }
public sbyte ToSByte(System.IFormatProvider provider) { return(System.Convert.ToSByte(LiteralValue, provider)); }