Esempio n. 1
0
        public Diagnostic(DiagnosticLevel level, string message, CXSourceLocation location)
        {
            if (string.IsNullOrWhiteSpace(message))
            {
                throw new ArgumentNullException(nameof(message));
            }

            _level    = level;
            _message  = message;
            _location = location.ToString();
        }
Esempio n. 2
0
 public Diagnostic(DiagnosticLevel level, string message, CXSourceLocation location) : this(level, message, location.ToString().Replace('\\', '/'))
 {
 }