# Migrating from version 24 to 25

## Delegates

All delegate args had their non-parameterless constructor removed in favor of using `init`.

BadDataFoundArgs

    // v25
    var args = new BadDataRoundArgs(field, rawRecord, context);

    // v26
    var args = new BadDataFoundArgs
    {
    	Field = field,
    	RawRecord = rawRecord,
    	Context = context,
    };

ConvertFromStringArgs

    // v25
    var args = new ConvertFromStringArgs(row);

    // v26
    var args = new ConvertFromStringArgs
    {
    	Row = row,
    };

ConvertToStringArgs

    // v25
    var args = new ConvertToStringArgs(value);

    // v26
    var args = new ConvertToStringArgs
    {
    	Value = value,
    };

GetConstructorArgs

    // v25
    var args = new GetConstructorArgs(type);

    // v26
    var args = new GetConstructorArgs
    {
    	ClassType = type,
    };

GetDynamicPropertyNameArgs

    // v25
    var args = new GetDynamicPropertyNameArgs(index, context);

    // v26
    var args = new GetDynamicPropertyNameArgs
    {
    	FieldIndex = index,
    	Context = context,
    };

HeaderValidatedArgs

    // v25
    var args = new HeaderValidatedArgs(headers, context);

    // v26
    var args = new HeaderValidatedArgs
    {
    	InvalidHeaders = headers,
    	Context = context,
    };

MissingFieldFoundArgs

    // v25
    var args = new MissingFieldFoundArgs(headerNames, index, context);

    // v26
    var args = new MissingFieldFoundArgs
    {
    	HeaderNames = headerNames,
    	Index = index,
    	Context = context,
    };

PrepareHeaderForMatchArgs

    // v25
    var args = new PrepareHeaderForMatchArgs(header, fieldIndex);

    // v26
    var args = new PrepareHeaderForMatchArgs
    {
    	Header = header,
    	FieldIndex = fieldIndex,
    };

ReadingExceptionOccurredArgs

    // v25
    var args = new ReadingExceptionOccurredArgs(exception);

    // v26
    var args = new ReadingExceptionOccurredArgs
    {
    	Exception = exception,
    };

ReferenceHeaderPrefixArgs

    // v25
    var args = new ReferenceHeaderPrefixArgs(memberType, memberName);

    // v26
    var args = new ReferenceHeaderPrefixArgs
    {
    	MemberType = memberType,
    	MemberName = memberName,
    };

ShouldQuoteArgs

    // v25
    var args = new ShouldQuoteArgs(field, fieldType, row);

    // v26
    var args = new ShouldQuoteArgs
    {
    	Field = field,
    	FieldType = fieldType,
    	Row = row,
    };

ShouldSkipRecordArgs

    // v25
    var args = new ShouldSkipRecordArgs(record);

    // v26
    var args = new ShouldSkipRecordArgs
    {
    	Record = record,
    };

ShouldUseConstructorParametersArgs

    // v25
    var args = new ShouldUseConstructorParametersArgs(parameterType);

    // v26
    var args = new ShouldUseConstructorParametersArgs
    {
    	ParameterType = parameterType,
    };

ValidateArgs

    // v25
    var args = new ValidateArgs(field);

    // v26
    var args = new ValidateArgs
    {
    	Field = field,
    };