Click or drag to resize

csvFileExtensionstoCsvFileT Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
2017: Saves CSV to file from path

Namespace:  imbSCI.DataComplex.extensions.data.formats
Assembly:  imbSCI.DataComplex (in imbSCI.DataComplex.dll) Version: 0.3.70.
Syntax
C#
public static bool toCsvFile<T>(
	this IEnumerable<T> collection,
	string path,
	getWritableFileMode mode = getWritableFileMode.overwrite
)
where T : class, new()
Request Example View Source

Parameters

collection
Type: System.Collections.GenericIEnumerableT
Typed IList to write CSV for. For properties with Display Name attribute it will use the attribute value
path
Type: SystemString
Relative or apsolute path where to store the file
mode (Optional)
Type: imbSCI.Data.enumsgetWritableFileMode

Type Parameters

T

Return Value

Type: Boolean

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also