1423873e b211 9009 ceda ddcb82135785 - akesseler/Plexdata.Utilities.Templates GitHub Wiki

TemplateWeaver.IsWeaveAllByIndex Method

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

Syntax

C#

private static bool IsWeaveAllByIndex(
	this IEnumerable<BaseToken> tokens
)

Parameters

 

tokens
Type: System.Collections.Generic.IEnumerable(BaseToken)
The list of tokens to be checked.

Return Value

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.

Usage Note

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).

Remarks

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.

See Also

Reference

TemplateWeaver Class
Plexdata.Utilities.Formatting.Helpers Namespace
BaseToken.Rating
BaseToken.IsNumbering
BaseToken.ToIndex()

⚠️ **GitHub.com Fallback** ⚠️