Beispiel #1
0
        public ValidationMessage(string message)
        {
            ArgumentCheck.IsNotNull(message, "message");
            ArgumentCheck.IsNotEmpty(message, "message");

            Message = message;
        }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ExcelSpreadsheet"/> class.
        /// </summary>
        /// <param name="filename">The filename.</param>
        private ExcelSpreadsheet(string filename)
        {
            ArgumentCheck.IsNotNull(filename);
            ArgumentCheck.IsNotEmpty(filename);

            FileInfo fileInfo = new FileInfo(filename);

            existingFile = fileInfo.Exists;

            this.filename = filename;
            workbook      = existingFile ? new XLWorkbook(filename) : new XLWorkbook();
            disposed      = false;
        }