public string ToCsvFormattedString() { string retVal = string.Empty; retVal += "\"" + Name.Replace("\"", "\"\"") + "\","; retVal += "\"" + Path.Replace("\"", "\"\"") + "\","; retVal += "\"" + SizeInBytes + "\","; retVal += "\"" + CreationDate.ToShortDateString() + "\","; retVal += "\"" + LastModifiedDate.ToShortDateString() + "\","; retVal += "\"" + LastAccessDate.ToShortDateString() + "\","; retVal += "\"" + Error.Replace("\"", "\"\"") + "\""; return(retVal); }
/// <summary> /// Simple Summary of the AuditDetail /// </summary> /// <returns></returns> public override string ToString() { System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append("CreatedDate: "); sb.Append(CreatedDate.ToString()); sb.Append(", CreatedEntryUser: "******", LastModifiedDate: "); sb.Append(LastModifiedDate?.ToString()); sb.Append(", LastModifiedEntryUser: "); sb.Append(LastModifiedEntryUserDisplayName); return(sb.ToString()); }
public override string GetStepParameters() { var parameters = new List <string>(); parameters.Add(OwningUser != null ? OwningUser.ToStepValue() : "$"); parameters.Add(OwningApplication != null ? OwningApplication.ToStepValue() : "$"); parameters.Add(State.ToStepValue()); parameters.Add(ChangeAction.ToStepValue()); parameters.Add(LastModifiedDate != null ? LastModifiedDate.ToStepValue() : "$"); parameters.Add(LastModifyingUser != null ? LastModifyingUser.ToStepValue() : "$"); parameters.Add(LastModifyingApplication != null ? LastModifyingApplication.ToStepValue() : "$"); parameters.Add(CreationDate != null ? CreationDate.ToStepValue() : "$"); return(string.Join(", ", parameters.ToArray())); }
public bool Equals(FileMetadataList.FileMetadataRow row) { if (row.FileExtension == null) { row.FileExtension = "NULL"; } return(FileName.Equals(row.FileName) && FilePath.Equals(row.FilePath) && CreatedDate.Equals(row.CreatedDate) && LastAccessedDate.Equals(row.LastAccessedDate) && LastModifiedDate.Equals(row.LastModifiedDate) && FileTypeId.Equals(row.FileTypeId) && FileExtension.Equals(row.FileExtension) && FileSize.Equals(row.FileSize)); }
public override void InternalToBinary(IBinaryRawWriter writer) { VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(ID); writer.WriteLong(CreationDate.ToBinary()); writer.WriteLong(LastModifiedDate.ToBinary()); writer.WriteBoolean(SiteModelExtent != null); SiteModelExtent?.ToBinary(writer); writer.WriteInt(MachineCount); writer.WriteInt(DesignCount); writer.WriteInt(SurveyedSurfaceCount); writer.WriteInt(AlignmentCount); }
internal void ToXml(XmlWriter writer, string element) { writer.WriteStartElement(element); writer.WriteAttributeString("date", LastModifiedDate.ToString("s")); writer.WriteAttributeString("name", Name); if (!String.IsNullOrEmpty(OwnerName)) { writer.WriteAttributeString("owner", OwnerName); } if (!String.IsNullOrEmpty(Scope)) { writer.WriteAttributeString("scope", Scope); } writer.WriteAttributeString("lid", LabelId.ToString()); writer.WriteEndElement(); }