System.Base2.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
		public override string ToString()
		{
			if (parseMode == Base2ParseMode.Scientific)
			{
				if (storeMode == Base2StorageMode.Bits) return Bits.ToString() + "bit";
				if (storeMode == Base2StorageMode.Bytes) return Bytes.ToString() + "B";
				if (storeMode == Base2StorageMode.Kibibits) return Kibibits.ToString() + "kibit";
				if (storeMode == Base2StorageMode.Kibibytes) return Kibibytes.ToString() + "KiB";
				if (storeMode == Base2StorageMode.Kilobits) return Kilobits.ToString() + "kbit";
				if (storeMode == Base2StorageMode.Kilobytes) return Kilobytes.ToString() + "KB";
				if (storeMode == Base2StorageMode.Mebibits) return Mebibits.ToString() + "Mibit";
				if (storeMode == Base2StorageMode.Mebibytes) return Mebibytes.ToString() + "MiB";
				if (storeMode == Base2StorageMode.Megabits) return Megabits.ToString() + "Mbit";
				if (storeMode == Base2StorageMode.Megabytes) return Megabytes.ToString() + "MB";
				if (storeMode == Base2StorageMode.Gibibits) return Gibibits.ToString() + "Gibit";
				if (storeMode == Base2StorageMode.Gibibytes) return Gibibytes.ToString() + "GiB";
				if (storeMode == Base2StorageMode.Gigabits) return Gigabits.ToString() + "Gbit";
				if (storeMode == Base2StorageMode.Gigabytes) return Gigabytes.ToString() + "GB";
				if (storeMode == Base2StorageMode.Tebibits) return Tebibits.ToString() + "Tebit";
				if (storeMode == Base2StorageMode.Tebibytes) return Tebibytes.ToString() + "TiB";
				if (storeMode == Base2StorageMode.Terabits) return Terabits.ToString() + "Tbit";
				if (storeMode == Base2StorageMode.Terabytes) return Terabytes.ToString() + "TB";
				if (storeMode == Base2StorageMode.Pebibits) return Pebibits.ToString() + "Pibit";
				if (storeMode == Base2StorageMode.Pebibytes) return Pebibytes.ToString() + "PiB";
				if (storeMode == Base2StorageMode.Petabits) return Petabits.ToString() + "Pbit";
				if (storeMode == Base2StorageMode.Petabytes) return Petabytes.ToString() + "PB";
			}

			if (parseMode == Base2ParseMode.Binary)
			{
				if (storeMode == Base2StorageMode.Bits) return Bits.ToString() + "bit";
				if (storeMode == Base2StorageMode.Bytes) return Bytes.ToString() + "B";
				if (storeMode == Base2StorageMode.Kibibits) return Kibibits.ToString() + "kbit";
				if (storeMode == Base2StorageMode.Kibibytes) return Kibibytes.ToString() + "KB";
				if (storeMode == Base2StorageMode.Kilobits) return Kilobits.ToString() + "kbit";
				if (storeMode == Base2StorageMode.Kilobytes) return Kilobytes.ToString() + "KB";
				if (storeMode == Base2StorageMode.Mebibits) return Mebibits.ToString() + "Mbit";
				if (storeMode == Base2StorageMode.Mebibytes) return Mebibytes.ToString() + "MB";
				if (storeMode == Base2StorageMode.Megabits) return Megabits.ToString() + "Mbit";
				if (storeMode == Base2StorageMode.Megabytes) return Megabytes.ToString() + "MB";
				if (storeMode == Base2StorageMode.Gibibits) return Gibibits.ToString() + "Gbit";
				if (storeMode == Base2StorageMode.Gibibytes) return Gibibytes.ToString() + "GB";
				if (storeMode == Base2StorageMode.Gigabits) return Gigabits.ToString() + "Gbit";
				if (storeMode == Base2StorageMode.Gigabytes) return Gigabytes.ToString() + "GB";
				if (storeMode == Base2StorageMode.Tebibits) return Tebibits.ToString() + "Tbit";
				if (storeMode == Base2StorageMode.Tebibytes) return Tebibytes.ToString() + "TB";
				if (storeMode == Base2StorageMode.Terabits) return Terabits.ToString() + "Tbit";
				if (storeMode == Base2StorageMode.Terabytes) return Terabytes.ToString() + "TB";
				if (storeMode == Base2StorageMode.Pebibits) return Pebibits.ToString() + "Pbit";
				if (storeMode == Base2StorageMode.Pebibytes) return Pebibytes.ToString() + "PB";
				if (storeMode == Base2StorageMode.Petabits) return Petabits.ToString() + "Pbit";
				if (storeMode == Base2StorageMode.Petabytes) return Petabytes.ToString() + "PB";
			}
			return "";
		}
	}