1423873e b211 9009 ceda ddcb82135785 - akesseler/Plexdata.Utilities.Templates GitHub Wiki
This method determines whether all hole tokens can be handled by index.
Namespace: Plexdata.Utilities.Formatting.Helpers
Assembly: Plexdata.Utilities.Templates (in Plexdata.Utilities.Templates.dll) Version: 1.0.0
C#
private static bool IsWeaveAllByIndex(
this IEnumerable<BaseToken> tokens
)
- tokens
- Type: System.Collections.Generic.IEnumerable(BaseToken)
The list of tokens to be checked.
Type: Boolean
True if all included hole tokens can be processed by index and false if at least one hole token must be processed by left-to-right position.
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable(BaseToken). When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
According to message template rules, all arguments can only be rendered by index if no named token is part of the whole format string. This is, what this method determines.
TemplateWeaver Class
Plexdata.Utilities.Formatting.Helpers Namespace
BaseToken.Rating
BaseToken.IsNumbering
BaseToken.ToIndex()