PermutationToString Method (String, IFormatProvider) |
Converts the permutation to its string representation in the given format.
Namespace:
Meta.Numerics.Functions
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax public string ToString(
string format,
IFormatProvider formatProvider
)
Public Function ToString (
format As String,
formatProvider As IFormatProvider
) As String
public:
virtual String^ ToString(
String^ format,
IFormatProvider^ formatProvider
) sealed
abstract ToString :
format : string *
formatProvider : IFormatProvider -> string
override ToString :
format : string *
formatProvider : IFormatProvider -> string
Parameters
- format
- Type: SystemString
A standard or custom permutation format string. - formatProvider
- Type: SystemIFormatProvider
An object that provides culture-specific formatting information.
Return Value
Type:
StringThe requested string representation of the permutation.
Implements
IFormattableToString(String, IFormatProvider)Remarks The standard permutation format strings are "M", which produces a map representation, and "C",
which produces a cycle representation.
For explanations of the map and cycle representations of a permutation, see Parse(String).
See Also