Show / Hide Table of Contents

Class NamingHelper

Provides methods to assist with automatically naming items.

Inheritance
object
NamingHelper
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Algenta.Colectica.Model.Ddi.Utility
Assembly: Algenta.Colectica.Model.Ddi.dll
Syntax
public static class NamingHelper

Methods

GetBaseFileNameForItem(IVersionable)

Gets the base file name for item, based on the name or title of the item.

Declaration
public static string GetBaseFileNameForItem(this IVersionable item)
Parameters
Type Name Description
IVersionable item

The item.

Returns
Type Description
string

GetNameForCategories(IEnumerable<Category>, string)

Gets a name for a category list, based on the contents of the list.

Declaration
public static string GetNameForCategories(IEnumerable<Category> categories, string language = null)
Parameters
Type Name Description
IEnumerable<Category> categories
string language
Returns
Type Description
string

GetNameForCategoryScheme(CategoryScheme, string)

Gets a name for a category list, based on the contents of the list.

Declaration
public static string GetNameForCategoryScheme(CategoryScheme categoryScheme, string language = null)
Parameters
Type Name Description
CategoryScheme categoryScheme

The category scheme.

string language

The language.

Returns
Type Description
string
Exceptions
Type Condition
ArgumentNullException

categoryScheme

GetNameForCodeList(CodeList, string)

Gets a name for a code list, based on the contents of the list.

Declaration
public static string GetNameForCodeList(CodeList codeList, string language = null)
Parameters
Type Name Description
CodeList codeList
string language
Returns
Type Description
string
In this article
Back to top Generated by DocFX