Class NamingHelper
Provides methods to assist with automatically naming items.
Inheritance
System.Object
NamingHelper
Namespace: Algenta.Colectica.Model.Ddi.Utility
Assembly: Algenta.Colectica.Model.Ddi.dll
Syntax
public static class NamingHelper : object
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 |
---|---|
System.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 | |
System.String | language |
Returns
Type | Description |
---|---|
System.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. |
System.String | language | The language. |
Returns
Type | Description |
---|---|
System.String |
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 | |
System.String | language |
Returns
Type | Description |
---|---|
System.String |