Show / Hide Table of Contents

Class ConversionBuilderExtensions

This class provides generic specializations for IConfigureConversionBuilder.

Inheritance
System.Object
ConversionBuilderExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Nett
Assembly: Nett.dll
Syntax
public static class ConversionBuilderExtensions
Remarks

These specializations are used, so that the user supplying the conversion doesn't need to invoke the TOML object constructor directly which he cannot as it is internal.

Methods

| Improve this Doc View Source

ToToml<TCustom>(IConversionSettingsBuilder<TCustom, TomlBool>, Func<TCustom, Boolean>)

Declaration
public static IConversionSettingsBuilder<TCustom, TomlBool> ToToml<TCustom>(this IConversionSettingsBuilder<TCustom, TomlBool> cb, Func<TCustom, bool> conv)
Parameters
Type Name Description
IConversionSettingsBuilder<TCustom, TomlBool> cb
System.Func<TCustom, System.Boolean> conv
Returns
Type Description
IConversionSettingsBuilder<TCustom, TomlBool>
Type Parameters
Name Description
TCustom
| Improve this Doc View Source

ToToml<TCustom>(IConversionSettingsBuilder<TCustom, TomlDuration>, Func<TCustom, TimeSpan>)

Declaration
public static IConversionSettingsBuilder<TCustom, TomlDuration> ToToml<TCustom>(this IConversionSettingsBuilder<TCustom, TomlDuration> cb, Func<TCustom, TimeSpan> conv)
Parameters
Type Name Description
IConversionSettingsBuilder<TCustom, TomlDuration> cb
System.Func<TCustom, System.TimeSpan> conv
Returns
Type Description
IConversionSettingsBuilder<TCustom, TomlDuration>
Type Parameters
Name Description
TCustom
| Improve this Doc View Source

ToToml<TCustom>(IConversionSettingsBuilder<TCustom, TomlFloat>, Func<TCustom, Double>)

Declaration
public static IConversionSettingsBuilder<TCustom, TomlFloat> ToToml<TCustom>(this IConversionSettingsBuilder<TCustom, TomlFloat> cb, Func<TCustom, double> conv)
Parameters
Type Name Description
IConversionSettingsBuilder<TCustom, TomlFloat> cb
System.Func<TCustom, System.Double> conv
Returns
Type Description
IConversionSettingsBuilder<TCustom, TomlFloat>
Type Parameters
Name Description
TCustom
| Improve this Doc View Source

ToToml<TCustom>(IConversionSettingsBuilder<TCustom, TomlInt>, Func<TCustom, Int64>)

Declaration
public static IConversionSettingsBuilder<TCustom, TomlInt> ToToml<TCustom>(this IConversionSettingsBuilder<TCustom, TomlInt> cb, Func<TCustom, long> conv)
Parameters
Type Name Description
IConversionSettingsBuilder<TCustom, TomlInt> cb
System.Func<TCustom, System.Int64> conv
Returns
Type Description
IConversionSettingsBuilder<TCustom, TomlInt>
Type Parameters
Name Description
TCustom
| Improve this Doc View Source

ToToml<TCustom>(IConversionSettingsBuilder<TCustom, TomlOffsetDateTime>, Func<TCustom, DateTimeOffset>)

Declaration
public static IConversionSettingsBuilder<TCustom, TomlOffsetDateTime> ToToml<TCustom>(this IConversionSettingsBuilder<TCustom, TomlOffsetDateTime> cb, Func<TCustom, DateTimeOffset> conv)
Parameters
Type Name Description
IConversionSettingsBuilder<TCustom, TomlOffsetDateTime> cb
System.Func<TCustom, System.DateTimeOffset> conv
Returns
Type Description
IConversionSettingsBuilder<TCustom, TomlOffsetDateTime>
Type Parameters
Name Description
TCustom
| Improve this Doc View Source

ToToml<TCustom>(IConversionSettingsBuilder<TCustom, TomlString>, Func<TCustom, String>)

Declaration
public static IConversionSettingsBuilder<TCustom, TomlString> ToToml<TCustom>(this IConversionSettingsBuilder<TCustom, TomlString> cb, Func<TCustom, string> conv)
Parameters
Type Name Description
IConversionSettingsBuilder<TCustom, TomlString> cb
System.Func<TCustom, System.String> conv
Returns
Type Description
IConversionSettingsBuilder<TCustom, TomlString>
Type Parameters
Name Description
TCustom
| Improve this Doc View Source

ToToml<TCustom>(IConversionSettingsBuilder<TCustom, TomlTable>, Action<TCustom, TomlTable>)

Declaration
public static IConversionSettingsBuilder<TCustom, TomlTable> ToToml<TCustom>(this IConversionSettingsBuilder<TCustom, TomlTable> cb, Action<TCustom, TomlTable> conv)
Parameters
Type Name Description
IConversionSettingsBuilder<TCustom, TomlTable> cb
System.Action<TCustom, TomlTable> conv
Returns
Type Description
IConversionSettingsBuilder<TCustom, TomlTable>
Type Parameters
Name Description
TCustom
  • Improve this Doc
  • View Source
Back to top Generated by DocFX