Show / Hide Table of Contents

Class CompositeFormatExtensions

Represents extensions for CompositeFormat type.

Inheritance
object
CompositeFormatExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: DotNext.Text
Assembly: DotNext.dll
Syntax
public static class CompositeFormatExtensions

Methods

View Source

IsInterned(string)

If format is a string literal, returns a composite format represents parsed string; otherwise, false.

Declaration
public static CompositeFormat? IsInterned(string format)
Parameters
Type Name Description
string format

The string that describes the format.

Returns
Type Description
CompositeFormat

Parsed format, if format is an interned string; otherwise, null.

View Source

Of(string)

Returns cached version of the formatting template.

Declaration
public static CompositeFormat Of(string format)
Parameters
Type Name Description
string format

The formatting template. Must be a constant.

Returns
Type Description
CompositeFormat

The cached version of the formatting template.

Exceptions
Type Condition
ArgumentNullException

format is null.

  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾