C# Class withSIX.Core.Extensions.SizeExtensions

ファイルを表示 Open project: SIXNetworks/withSIX.Desktop

Public Properties

Property Type Description
DefaultContentLengthRange ContentLengthRange

Public Methods

Method Description
FormatSize ( this size, System.Tools unit = Tools.FileTools.Units.B ) : string
FormatSpeed ( this speed, System.Tools unit = Tools.FileTools.Units.B ) : string
ToBytes ( this size, FileSizeHelper inputUnit ) : long
VerifySize ( this range, long size ) : void

Method Details

FormatSize() public static method

public static FormatSize ( this size, System.Tools unit = Tools.FileTools.Units.B ) : string
size this
unit System.Tools
return string

FormatSpeed() public static method

public static FormatSpeed ( this speed, System.Tools unit = Tools.FileTools.Units.B ) : string
speed this
unit System.Tools
return string

ToBytes() public static method

public static ToBytes ( this size, FileSizeHelper inputUnit ) : long
size this
inputUnit FileSizeHelper
return long

VerifySize() public static method

public static VerifySize ( this range, long size ) : void
range this
size long
return void

Property Details

DefaultContentLengthRange public_oe static_oe property

public static ContentLengthRange DefaultContentLengthRange
return ContentLengthRange