/// <summary> /// Lists all of the <see cref="WatchedFile"/>'s properties /// </summary> public override string ToString() { return(ShortPath + Environment.NewLine + " Size: " + ByteCount.ToString("n0") + " bytes" + Environment.NewLine + " Archive: " + Archive + Environment.NewLine + " Hidden: " + Hidden + Environment.NewLine + " Readonly: " + ReadOnly + Environment.NewLine + " Last Opened: " + LastOpened.ToString(DateFormatString) + Environment.NewLine + " Last Modified: " + LastModified.ToString(DateFormatString)); }
public override string ToString() { if (BitCount == 0) { return(ByteCount.ToString()); } var totalBitCount = TotalBitCount; return(totalBitCount == 1 ? "1 bit" : $"{totalBitCount} bits"); }
protected override void DataCheck() { base.DataCheck(); if (!(ByteCount > 0 && ByteCount <= ByteCountLimit)) { throw new RffeOutOfRangeException("Byte count", "1", ByteCountLimit.ToString(), ByteCount.ToString()); } }