Example #1
0
        public void ToXml(XmlWriter writer)
        {
            writer.WriteStartElement("modification");
            writer.WriteAttributeString("type", Type);
            writer.WriteElementString("filename", FileName);
            writer.WriteElementString("project", FolderName);
            writer.WriteElementString("date", ModifiedTime.ToString("yyyy-MM-dd HH:mm:ss"));
            writer.WriteElementString("user", UserName);
            writer.WriteElementString("comment", Comment);
            writer.WriteElementString("changeNumber", ChangeNumber.ToString());

            if (!(Version == null || Version.Length == 0))
            {
                writer.WriteElementString("version", Version);
            }

            if (Url != null)
            {
                writer.WriteElementString("url", Url);
            }

            if (_EmailAddress != null)
            {
                writer.WriteElementString("email", _EmailAddress);
            }

            writer.WriteEndElement();
        }
Example #2
0
 protected bool Equals(BaseEntityDto <TIdentity> other)
 {
     return(Id.Equals(other.Id) &&
            CreatedTime.ToString() == other.CreatedTime.ToString() &&
            ModifiedTime.ToString() == other.ModifiedTime.ToString() &&
            CanModify == other.CanModify);
 }
        public override bool Equals(object obj)
        {
            var info = obj as ApplicationFileInfo;

            return(info != null &&
                   Filepath == info.Filepath &&
                   Filesize == info.Filesize &&
                   ModifiedTime.ToString().Equals(info.ModifiedTime.ToString()));
        }
        public override int GetHashCode()
        {
            var hashCode = -1706955063;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Filepath);

            hashCode = hashCode * -1521134295 + Filesize.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ModifiedTime.ToString());

            return(hashCode);
        }
Example #5
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("CompactContact(");
        bool __first = true;

        if (Mid != null && __isset.mid)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Mid: ");
            Mid.ToString(sb);
        }
        if (__isset.createdTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CreatedTime: ");
            CreatedTime.ToString(sb);
        }
        if (__isset.modifiedTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ModifiedTime: ");
            ModifiedTime.ToString(sb);
        }
        if (__isset.status)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Status: ");
            Status.ToString(sb);
        }
        if (__isset.settings)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Settings: ");
            Settings.ToString(sb);
        }
        if (DisplayNameOverridden != null && __isset.displayNameOverridden)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("DisplayNameOverridden: ");
            DisplayNameOverridden.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }