Class AdaptiveStringBuilderUtilities
Содержит служебные методы для работы с классом AdaptiveStringBuilder.
Inheritance
System.Object
AdaptiveStringBuilderUtilities
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Common
Assembly: Terrasoft.Common.dll
Syntax
public static class AdaptiveStringBuilderUtilities
Methods
AppendCollection(AdaptiveStringBuilder, ICollection<String>)
Добавляет коллекцию строк к данному экземпляру.
Declaration
public static void AppendCollection(this AdaptiveStringBuilder source, ICollection<string> collection)
Parameters
Type | Name | Description |
---|---|---|
AdaptiveStringBuilder | source | Экземпляр, к которому осуществляется добавление. |
System.Collections.Generic.ICollection<System.String> | collection | Добавляемая коллекция строк. |
AppendCollection<T>(AdaptiveStringBuilder, ICollection<T>, Func<T, String>)
Добавляет к данному экземпляру коллекцию объектов, к котрорым применима функция определенного вида.
Declaration
public static void AppendCollection<T>(this AdaptiveStringBuilder source, ICollection<T> collection, Func<T, string> func)
Parameters
Type | Name | Description |
---|---|---|
AdaptiveStringBuilder | source | Экземпляр, к которому осуществляется добавление. |
System.Collections.Generic.ICollection<T> | collection | Добавляемая коллекция объектов. |
System.Func<T, System.String> | func | Вид функции. |
Type Parameters
Name | Description |
---|---|
T | Любой тип. |
Remarks
Расширяемый метод.
DecorateWithSimpleTemplate(AdaptiveStringBuilder, String)
Форматирование данного экземпляра в соответствии с шаблоном.
Declaration
public static void DecorateWithSimpleTemplate(this AdaptiveStringBuilder source, string template)
Parameters
Type | Name | Description |
---|---|---|
AdaptiveStringBuilder | source | Форматируемый экземпляр. |
System.String | template | Шаблон форматирования. |
Remarks
Поддерживает шаблоны вида "begin{0}end".