Class ArchiveColumnInfoExtensions
Inherited Members
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoCore.dll
Syntax
public static class ArchiveColumnInfoExtensions
Methods
ToNameArray(ArchiveColumnInfo[])
Utility method to convert an array of ArchiveColumnInfo into a string array containing the names only
Declaration
public static string[] ToNameArray(this ArchiveColumnInfo[] columnInfos)
Parameters
| Type | Name | Description |
|---|---|---|
| ArchiveColumnInfo[] | columnInfos | Column infos to extract names from |
Returns
| Type | Description |
|---|---|
| string[] | Array of names, in original order |
ToNameArray(ArchiveColumnInfo[], Predicate<ArchiveColumnInfo>)
Utility method to conditionally convert an array of ArchiveColumnInfo into a string array containing the names only. The given predicate is applied to each ArchiveColumnInfo to determine if its name should be included in the result.
Declaration
public static string[] ToNameArray(this ArchiveColumnInfo[] columnInfos, Predicate<ArchiveColumnInfo> condition)
Parameters
| Type | Name | Description |
|---|---|---|
| ArchiveColumnInfo[] | columnInfos | Column infos to test and extract the name from |
| Predicate<ArchiveColumnInfo> | condition | Predicate that takes an ArchiveColumnInfo and returns a bool. A value of true indicates that that particular ArchiveColumnInfo should be included in the result. |
Returns
| Type | Description |
|---|---|
| string[] | Array of names of column infos that were chosen, in original order |
ToNameArray(List<ArchiveColumnInfo>)
Utility method to convert a list of ArchiveColumnInfo into a string array containing the names only
Declaration
public static string[] ToNameArray(this List<ArchiveColumnInfo> columnInfos)
Parameters
| Type | Name | Description |
|---|---|---|
| List<ArchiveColumnInfo> | columnInfos | Column infos to extract names from |
Returns
| Type | Description |
|---|---|
| string[] | Array of names, in original order |
ToNameArray(List<ArchiveColumnInfo>, Predicate<ArchiveColumnInfo>)
Utility method to conditionally convert a list of ArchiveColumnInfo into a string array containing the names only. The given predicate is applied to each ArchiveColumnInfo to determine if its name should be included in the result.
Declaration
public static string[] ToNameArray(this List<ArchiveColumnInfo> columnInfos, Predicate<ArchiveColumnInfo> condition)
Parameters
| Type | Name | Description |
|---|---|---|
| List<ArchiveColumnInfo> | columnInfos | Column infos to test and extract the name from |
| Predicate<ArchiveColumnInfo> | condition | Predicate that takes an ArchiveColumnInfo and returns a bool. A value of true indicates that that particular ArchiveColumnInfo should be included in the result. |
Returns
| Type | Description |
|---|---|
| string[] | Array of names of column infos that were chosen, in original order |
ToNameDictionary(List<ArchiveColumnInfo>)
Utility method to convert a list of ArchiveColumnInfo into a dictionary keyed on name
Declaration
public static Dictionary<string, ArchiveColumnInfo> ToNameDictionary(this List<ArchiveColumnInfo> columnInfos)
Parameters
| Type | Name | Description |
|---|---|---|
| List<ArchiveColumnInfo> | columnInfos | Column infos to extract names from |
Returns
| Type | Description |
|---|---|
| Dictionary<string, ArchiveColumnInfo> | Dictionary keyed on name |