KeePass.IO.Data.Entry.GetAllFields C# (CSharp) Method

GetAllFields() public method

Gets all fields.
public GetAllFields ( ) : IList
return IList
        public IList<Field> GetAllFields()
        {
            return _fields.Values.ToList();
        }

Usage Example

Example #1
0
        /// <summary>
        /// Updates the details of the specified entry.
        /// </summary>
        /// <param name="entry">The entry.</param>
        public void Details(Entry entry)
        {
            if (entry == null)
                throw new ArgumentNullException("entry");

            var element = _entries[entry.ID];

            element
                .Element("History")
                .Add(Clone(element));

            SetFields(element, entry.GetAllFields());

            var time = DateTime.Now;
            entry.LastModified = time;

            element
                .Element("Times")
                .Element("LastModificationTime")
                .Value = GetTime(time);
        }
All Usage Examples Of KeePass.IO.Data.Entry::GetAllFields