From 3f583916719eeef598d10a5d4e14ef14f008243b Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Tue, 11 May 2021 07:36:37 -0700 Subject: Merge Dtf --- .../ValidationErrorInfo.cs | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/dtf/WixToolset.Dtf.WindowsInstaller/ValidationErrorInfo.cs (limited to 'src/dtf/WixToolset.Dtf.WindowsInstaller/ValidationErrorInfo.cs') diff --git a/src/dtf/WixToolset.Dtf.WindowsInstaller/ValidationErrorInfo.cs b/src/dtf/WixToolset.Dtf.WindowsInstaller/ValidationErrorInfo.cs new file mode 100644 index 00000000..3f75326e --- /dev/null +++ b/src/dtf/WixToolset.Dtf.WindowsInstaller/ValidationErrorInfo.cs @@ -0,0 +1,46 @@ +// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. + +namespace WixToolset.Dtf.WindowsInstaller +{ + using System.Diagnostics.CodeAnalysis; + + /// + /// Contains specific information about an error encountered by the , + /// , or methods of the + /// class. + /// + [SuppressMessage("Microsoft.Performance", "CA1815:OverrideEqualsAndOperatorEqualsOnValueTypes")] + public struct ValidationErrorInfo + { + private ValidationError error; + private string column; + + internal ValidationErrorInfo(ValidationError error, string column) + { + this.error = error; + this.column = column; + } + + /// + /// Gets the type of validation error encountered. + /// + public ValidationError Error + { + get + { + return this.error; + } + } + + /// + /// Gets the column containing the error, or null if the error applies to the whole row. + /// + public string Column + { + get + { + return this.column; + } + } + } +} -- cgit v1.2.3-55-g6feb