OptionConverter ToFileSize Method Apache log4net™ SDK Documentation
Parses a file size into a number.

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

public static long ToFileSize(
	string argValue,
	long defaultValue
)

Return Value

Type: OnlineInt64
The OnlineInt64 value of argValue.
Remarks

Parses a file size of the form: number[KB|MB|GB] into a long value. It is scaled with the appropriate multiplier.

defaultValue is returned when argValue cannot be converted to a OnlineInt64 value.

See Also