From 2a1cd4fda8a4a8e649910d16b4dfa1ce7ae63543 Mon Sep 17 00:00:00 2001
From: chai <215380520@qq.com>
Date: Fri, 12 May 2023 09:24:40 +0800
Subject: *misc
---
.../CsvHelper/Configuration/ParameterMapData.cs | 106 +++++++++++++++++++++
1 file changed, 106 insertions(+)
create mode 100644 ThirdParty/CsvHelper-master/src/CsvHelper/Configuration/ParameterMapData.cs
(limited to 'ThirdParty/CsvHelper-master/src/CsvHelper/Configuration/ParameterMapData.cs')
diff --git a/ThirdParty/CsvHelper-master/src/CsvHelper/Configuration/ParameterMapData.cs b/ThirdParty/CsvHelper-master/src/CsvHelper/Configuration/ParameterMapData.cs
new file mode 100644
index 0000000..a83edbe
--- /dev/null
+++ b/ThirdParty/CsvHelper-master/src/CsvHelper/Configuration/ParameterMapData.cs
@@ -0,0 +1,106 @@
+// Copyright 2009-2022 Josh Close
+// This file is a part of CsvHelper and is dual licensed under MS-PL and Apache 2.0.
+// See LICENSE.txt for details or visit http://www.opensource.org/licenses/ms-pl.html for MS-PL and http://opensource.org/licenses/Apache-2.0 for Apache 2.0.
+// https://github.com/JoshClose/CsvHelper
+using CsvHelper.TypeConversion;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Reflection;
+
+namespace CsvHelper.Configuration
+{
+ ///
+ /// The constructor parameter data for the map.
+ ///
+ [DebuggerDisplay("Index = {Index}, Names = {string.Join(\", \", Names)}, Parameter = {Parameter}")]
+ public class ParameterMapData
+ {
+ ///
+ /// Gets the that the data
+ /// is associated with.
+ ///
+ public virtual ParameterInfo Parameter { get; private set; }
+
+ ///
+ /// Gets the list of column names.
+ ///
+ public virtual MemberNameCollection Names { get; } = new MemberNameCollection();
+
+ ///
+ /// Gets or sets the index of the name.
+ /// This is used if there are multiple
+ /// columns with the same names.
+ ///
+ public virtual int NameIndex { get; set; }
+
+ ///
+ /// Gets or sets a value indicating if the name was
+ /// explicitly set. True if it was explicitly set,
+ /// otherwise false.
+ ///
+ public virtual bool IsNameSet { get; set; }
+
+ ///
+ /// Gets or sets the column index.
+ ///
+ public virtual int Index { get; set; } = -1;
+
+ ///
+ /// Gets or sets a value indicating if the index was
+ /// explicitly set. True if it was explicitly set,
+ /// otherwise false.
+ ///
+ public virtual bool IsIndexSet { get; set; }
+
+ ///
+ /// Gets or sets the type converter.
+ ///
+ public virtual ITypeConverter TypeConverter { get; set; }
+
+ ///
+ /// Gets or sets the type converter options.
+ ///
+ public virtual TypeConverterOptions TypeConverterOptions { get; set; } = new TypeConverterOptions();
+
+ ///
+ /// Gets or sets a value indicating whether the field should be ignored.
+ ///
+ public virtual bool Ignore { get; set; }
+
+ ///
+ /// Gets or sets the default value used when a CSV field is empty.
+ ///
+ public virtual object? Default { get; set; }
+
+ ///
+ /// Gets or sets a value indicating whether this instance is default value set.
+ /// the default value was explicitly set. True if it was
+ /// explicitly set, otherwise false.
+ ///
+ public virtual bool IsDefaultSet { get; set; }
+
+ ///
+ /// Gets or sets the constant value used for every record.
+ ///
+ public virtual object? Constant { get; set; }
+
+ ///
+ /// Gets or sets a value indicating if a constant was explicitly set.
+ ///
+ public virtual bool IsConstantSet { get; set; }
+
+ ///
+ /// Gets or sets a value indicating if a field is optional.
+ ///
+ public virtual bool IsOptional { get; set; }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The constructor parameter.
+ public ParameterMapData(ParameterInfo parameter)
+ {
+ Parameter = parameter;
+ }
+ }
+}
--
cgit v1.1-26-g67d0