Table of Contents

Method MakeUnique

Namespace
Oscova.Agents.Persistence
Assembly
Oscova.Agents.dll

MakeUnique(string, ISet<string>)

Returns slug if free, otherwise appends a numeric suffix.

public static string MakeUnique(string slug, ISet<string> existingSlugs)

Parameters

slug string
existingSlugs ISet<string>

Returns

string