Table of Contents

Method TryParse

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

TryParse(string, out string, out string, out string)

Takes a connection string apart: the file and what follows its extension.

public static bool TryParse(string connection, out string file, out string sheet, out string range)

Parameters

connection string

The connection string.

file string

The file.

sheet string

The first part after the file, a sheet or a named range; empty for none.

range string

The second part after the file, the cells; empty for none.

Returns

bool

True when the string names a file with an extension of a workbook or a CSV file.