Table of Contents

EncodeFragment Method

Definition

Namespace
Cuemon.Data
Assemblies
Cuemon.Data.dll
Source
src/Cuemon.Data/QueryBuilder.cs

EncodeFragment(QueryFormat, IEnumerable<string>, bool)

Encodes the specified sequence of values into the desired format of fragments.

public static string EncodeFragment(QueryFormat format, IEnumerable<string> values, bool distinct = false)

Parameters

format QueryFormat

One of the enumeration values that specifies the fragment to produce.

values IEnumerable<string>

The IEnumerable<T> to convert into the desired format of fragments.

distinct bool

if set to true, values will be filtered for doublets.

Returns

string

A query fragment in the desired format.

Exceptions

ArgumentNullException

values cannot be null.

ArgumentException

values contains no elements.