コード例 #1
0
ファイル: Entry.cs プロジェクト: 0x49D1/WinPass
        public Entry(ICollection<Field> fields)
        {
            if (fields == null)
                throw new ArgumentNullException("fields");

            Icon = new IconData();

            _original = fields;
            _fields = fields.ToDictionary(
                x => x.Name, x => x.Clone());

            _protects = new EntryProtects(_fields);
        }
コード例 #2
0
        public Entry(ICollection <Field> fields)
        {
            if (fields == null)
            {
                throw new ArgumentNullException("fields");
            }

            Icon = new IconData();

            _original = fields;
            _fields   = fields.ToDictionary(
                x => x.Name, x => x.Clone());

            _protects = new EntryProtects(_fields);
        }