using CsvHelper.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CsvHelper.Delegates
{
///
/// Function that resolves the delimiter from the given text.
/// Returns null if no delimiter is found.
///
///
///
public delegate string? GetDelimiter(GetDelimiterArgs args);
///
/// GetDelimiter args.
///
public readonly struct GetDelimiterArgs
{
///
/// The text to resolve the delimiter from.
///
public readonly string Text;
///
/// The configuration.
///
public readonly IParserConfiguration Configuration;
///
/// Creates an instance of GetDelimiterArgs.
///
/// The text to resolve the delimiter from.
/// The configuration.
public GetDelimiterArgs(string text, IParserConfiguration configuration)
{
Text = text;
Configuration = configuration;
}
}
}