Ejemplo n.º 1
0
        /// <summary>
        /// This version of the constructor is used when parsing vNote data that is to be stored in an existing
        /// vNote instance.
        /// </summary>
        /// <remarks>The properties in the passed vNote will be cleared</remarks>
        /// <param name="vNote">The existing vNote instance</param>
        /// <exception cref="ArgumentNullException">This is thrown if the specified vNote object is null</exception>
        protected VNoteParser(VNote vNote) : this()
        {
            currentNote = vNote ?? throw new ArgumentNullException(nameof(vNote),
                                                                   LR.GetString("ExParseNullObject", "vNote"));

            currentNote.ClearProperties();
            vNotes.Add(vNote);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// This version of the constructor is used when parsing vNote data that is to be stored in an existing
        /// vNote instance.
        /// </summary>
        /// <remarks>The properties in the passed vNote will be cleared</remarks>
        /// <param name="vNote">The existing vNote instance</param>
        /// <exception cref="ArgumentNullException">This is thrown if the specified vNote object is null</exception>
        protected VNoteParser(VNote vNote) : this()
        {
            if (vNote == null)
            {
                throw new ArgumentNullException("vNote", LR.GetString("ExParseNullObject", "vNote"));
            }

            currentNote = vNote;
            currentNote.ClearProperties();
            vNotes.Add(vNote);
        }