Click or drag to resize
StringExtensionsFromReadableLength Method
Converts from Human-Readable Length to Bytes count

Namespace: DrawerBackup.Native.Extensions
Assembly: DrawerBackup.Native (in DrawerBackup.Native.dll) Version: 0.0.1.1 (0.0.1.1)
Syntax
public static long FromReadableLength(
	this string data
)

Parameters

data
Type: SystemString
Can be: 1024B = 1024 Bytes 1MB = 1 Megabytes 1024KB = 1024 KBytes 1TB = 1 Terabytes 1GB = 1 Gigabytes

Return Value

Type: Int64

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also