Пример #1
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("Item instance ");
            sb.Append(GetHashCode());

            sb.Append("\n	 ItemId: ");
            sb.Append(ItemId);

            sb.Append("\n	 CheckinDate: ");
            sb.Append(CheckinDate.ToString("s"));

            sb.Append("\n	 ChangesetId: ");
            sb.Append(ChangesetId);

            sb.Append("\n	 DeletionId: ");
            sb.Append(DeletionId);

            sb.Append("\n	 ItemType: ");
            sb.Append(ItemType);

            sb.Append("\n	 ServerItem: ");
            sb.Append(ServerItem);

            sb.Append("\n	 ContentLength: ");
            sb.Append(ContentLength);

            sb.Append("\n	 Download URL: ");
            sb.Append(downloadUrl);

            sb.Append("\n	 Hash: ");
            string hash = String.Empty;

            if (HashValue != null)
            {
                hash = Convert.ToBase64String(HashValue);
            }
            sb.Append(hash);

            return(sb.ToString());
        }
Пример #2
0
 public override string ToString()
 {
     return($"{FullName} ({CheckinDate.ToString("d")} to {CheckoutDate.ToString("d")})");
 }