Table of Contents

Class ObjectCreator

Namespace
CsvHelper
Assembly
CsvHelper.dll

Efficiently creates instances of object types.

public class ObjectCreator
Inheritance
ObjectCreator
Inherited Members

Constructors

ObjectCreator()

public ObjectCreator()

Methods

CreateInstance(Type, params object?[])

Creates an instance of the given type using the given arguments.

public object CreateInstance(Type type, params object?[] args)

Parameters

type Type

The type to create an instance of.

args object[]

The constructor arguments.

Returns

object

CreateInstance<T>(params object?[])

Creates an instance of type T using the given arguments.

public T CreateInstance<T>(params object?[] args)

Parameters

args object[]

The constrcutor arguments.

Returns

T

Type Parameters

T

The type to create an instance of.