ConfigurationFunctions Class
Holds the default callback methods for delegate members of CsvHelper.Configuration.Configuration.
Namespace
CsvHelper.Configuration
Base Types
  • object
graph BT Type-->Base0["object"] Type["ConfigurationFunctions"] class Type type-node

Syntax

public static class ConfigurationFunctions

Methods

Name Return Value Summary
BadDataFound(BadDataFoundArgs) void
Throws a BadDataException.
static
GetConstructor(GetConstructorArgs) ConstructorInfo
Returns the type's constructor with the most parameters. If two constructors have the same number of parameters, then there is no guarantee which one will be returned. If you have that situation, you should probably implement this function yourself.
static
GetDelimiter(GetDelimiterArgs) string
Detects the delimiter based on the given text. Return the detected delimiter or null if one wasn't found.
static
GetDynamicPropertyName(GetDynamicPropertyNameArgs) string
Returns the header name ran through PrepareHeaderForMatch(PrepareHeaderForMatchArgs). If no header exists, property names will be Field1, Field2, Field3, etc.
static
HeaderValidated(HeaderValidatedArgs) void
Throws a ValidationException if is not empty.
static
MissingFieldFound(MissingFieldFoundArgs) void
Throws a MissingFieldException.
static
PrepareHeaderForMatch(PrepareHeaderForMatchArgs) string
Returns the as given.
static
ReadingExceptionOccurred(ReadingExceptionOccurredArgs) bool
Throws the given .
static
ShouldQuote(ShouldQuoteArgs) bool
Returns true if the field contains a Quote, starts with a space, ends with a space, contains \r or \n, or contains the Delimiter.
static
ShouldUseConstructorParameters(ShouldUseConstructorParametersArgs) bool
Returns true if args.ParameterType.ParameterType: 1. does not have a parameterless constructor 2. has a constructor 3. is not a value type 4. is not a primitive 5. is not an enum 6. is not an interface 7. TypeCode is an Object.
static