C# Класс StringFormatEx.Plugins.ArrayPlugin

Наследование: IStringFormatterPlugin
Показать файл Открыть проект

Открытые методы

Метод Описание
GetFormatExtensions ( ) : IEnumerable>
GetSourceExtensions ( ) : IEnumerable>

Приватные методы

Метод Описание
DoArrayFormatting ( object sender, ExtendFormatEventArgs e ) : void
GetArrayIndex ( object sender, ExtendSourceEventArgs e ) : void
GetArraySource ( object sender, ExtendSourceEventArgs e ) : void

This allows an integer to be used as a selector to index an array (or list). Doesn't support ICollection because ICollection doesn't implement indexed items. This is better described using an example: CustomFormat("{Dates.2.Year}", {#1/1/2000#, #12/31/2999#, #9/9/9999#}) = "9999" The ".2" selector is used to reference Dates(2).

Описание методов

GetFormatExtensions() публичный Метод

public GetFormatExtensions ( ) : IEnumerable>
Результат IEnumerable>

GetSourceExtensions() публичный Метод

public GetSourceExtensions ( ) : IEnumerable>
Результат IEnumerable>