Show / Hide Table of Contents

Class TomlObjectFactory

Inheritance
System.Object
TomlObjectFactory
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 TomlObjectFactory

Methods

| Improve this Doc View Source

Add(TomlTable, String, Boolean)

Declaration
public static TomlObjectFactory.Result<TomlBool> Add(this TomlTable table, string key, bool value)
Parameters
Type Name Description
TomlTable table
System.String key
System.Boolean value
Returns
Type Description
TomlObjectFactory.Result<TomlBool>
| Improve this Doc View Source

Add(TomlTable, String, IEnumerable<Boolean>)

Declaration
public static TomlObjectFactory.Result<TomlArray> Add(this TomlTable table, string key, IEnumerable<bool> array)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IEnumerable<System.Boolean> array
Returns
Type Description
TomlObjectFactory.Result<TomlArray>
| Improve this Doc View Source

Add(TomlTable, String, IEnumerable<DateTime>)

Declaration
public static TomlObjectFactory.Result<TomlArray> Add(this TomlTable table, string key, IEnumerable<DateTime> array)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IEnumerable<System.DateTime> array
Returns
Type Description
TomlObjectFactory.Result<TomlArray>
| Improve this Doc View Source

Add(TomlTable, String, IEnumerable<DateTimeOffset>)

Declaration
public static TomlObjectFactory.Result<TomlArray> Add(this TomlTable table, string key, IEnumerable<DateTimeOffset> array)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IEnumerable<System.DateTimeOffset> array
Returns
Type Description
TomlObjectFactory.Result<TomlArray>
| Improve this Doc View Source

Add(TomlTable, String, IEnumerable<Double>)

Declaration
public static TomlObjectFactory.Result<TomlArray> Add(this TomlTable table, string key, IEnumerable<double> array)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IEnumerable<System.Double> array
Returns
Type Description
TomlObjectFactory.Result<TomlArray>
| Improve this Doc View Source

Add(TomlTable, String, IEnumerable<Int32>)

Declaration
public static TomlObjectFactory.Result<TomlArray> Add(this TomlTable table, string key, IEnumerable<int> array)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IEnumerable<System.Int32> array
Returns
Type Description
TomlObjectFactory.Result<TomlArray>
| Improve this Doc View Source

Add(TomlTable, String, IEnumerable<Int64>)

Declaration
public static TomlObjectFactory.Result<TomlArray> Add(this TomlTable table, string key, IEnumerable<long> array)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IEnumerable<System.Int64> array
Returns
Type Description
TomlObjectFactory.Result<TomlArray>
| Improve this Doc View Source

Add(TomlTable, String, IEnumerable<Single>)

Declaration
public static TomlObjectFactory.Result<TomlArray> Add(this TomlTable table, string key, IEnumerable<float> array)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IEnumerable<System.Single> array
Returns
Type Description
TomlObjectFactory.Result<TomlArray>
| Improve this Doc View Source

Add(TomlTable, String, IEnumerable<String>)

Declaration
public static TomlObjectFactory.Result<TomlArray> Add(this TomlTable table, string key, IEnumerable<string> array)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IEnumerable<System.String> array
Returns
Type Description
TomlObjectFactory.Result<TomlArray>
| Improve this Doc View Source

Add(TomlTable, String, IEnumerable<TimeSpan>)

Declaration
public static TomlObjectFactory.Result<TomlArray> Add(this TomlTable table, string key, IEnumerable<TimeSpan> values)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IEnumerable<System.TimeSpan> values
Returns
Type Description
TomlObjectFactory.Result<TomlArray>
| Improve this Doc View Source

Add(TomlTable, String, DateTimeOffset)

Declaration
public static TomlObjectFactory.Result<TomlOffsetDateTime> Add(this TomlTable table, string key, DateTimeOffset value)
Parameters
Type Name Description
TomlTable table
System.String key
System.DateTimeOffset value
Returns
Type Description
TomlObjectFactory.Result<TomlOffsetDateTime>
| Improve this Doc View Source

Add(TomlTable, String, Double)

Declaration
public static TomlObjectFactory.Result<TomlFloat> Add(this TomlTable table, string key, double value)
Parameters
Type Name Description
TomlTable table
System.String key
System.Double value
Returns
Type Description
TomlObjectFactory.Result<TomlFloat>
| Improve this Doc View Source

Add(TomlTable, String, Int32)

Declaration
public static TomlObjectFactory.Result<TomlInt> Add(this TomlTable table, string key, int value)
Parameters
Type Name Description
TomlTable table
System.String key
System.Int32 value
Returns
Type Description
TomlObjectFactory.Result<TomlInt>
| Improve this Doc View Source

Add(TomlTable, String, Int64)

Declaration
public static TomlObjectFactory.Result<TomlInt> Add(this TomlTable table, string key, long value)
Parameters
Type Name Description
TomlTable table
System.String key
System.Int64 value
Returns
Type Description
TomlObjectFactory.Result<TomlInt>
| Improve this Doc View Source

Add(TomlTable, String, Object, TomlTable.TableTypes)

Declaration
public static TomlObjectFactory.Result<TomlTable> Add(this TomlTable table, string key, object obj, TomlTable.TableTypes tableType = TomlTable.TableTypes.Default)
Parameters
Type Name Description
TomlTable table
System.String key
System.Object obj
TomlTable.TableTypes tableType
Returns
Type Description
TomlObjectFactory.Result<TomlTable>
| Improve this Doc View Source

Add(TomlTable, String, Single)

Declaration
public static TomlObjectFactory.Result<TomlFloat> Add(this TomlTable table, string key, float value)
Parameters
Type Name Description
TomlTable table
System.String key
System.Single value
Returns
Type Description
TomlObjectFactory.Result<TomlFloat>
| Improve this Doc View Source

Add(TomlTable, String, String)

Declaration
public static TomlObjectFactory.Result<TomlString> Add(this TomlTable table, string key, string value)
Parameters
Type Name Description
TomlTable table
System.String key
System.String value
Returns
Type Description
TomlObjectFactory.Result<TomlString>
| Improve this Doc View Source

Add(TomlTable, String, TimeSpan)

Declaration
public static TomlObjectFactory.Result<TomlDuration> Add(this TomlTable table, string key, TimeSpan value)
Parameters
Type Name Description
TomlTable table
System.String key
System.TimeSpan value
Returns
Type Description
TomlObjectFactory.Result<TomlDuration>
| Improve this Doc View Source

Add<T>(TomlTable, String, T, TomlObjectFactory.RequireTomlObject<T>)

Declaration
public static TomlObjectFactory.Result<T> Add<T>(this TomlTable table, string key, T obj, TomlObjectFactory.RequireTomlObject<T> _ = null)

    where T : TomlObject
Parameters
Type Name Description
TomlTable table
System.String key
T obj
TomlObjectFactory.RequireTomlObject<T> _
Returns
Type Description
TomlObjectFactory.Result<T>
Type Parameters
Name Description
T
| Improve this Doc View Source

Add<T>(TomlTable, String, IDictionary<String, T>, TomlTable.TableTypes)

Declaration
public static TomlObjectFactory.Result<TomlTable> Add<T>(this TomlTable table, string key, IDictionary<string, T> tableData, TomlTable.TableTypes tableType = TomlTable.TableTypes.Default)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IDictionary<System.String, T> tableData
TomlTable.TableTypes tableType
Returns
Type Description
TomlObjectFactory.Result<TomlTable>
Type Parameters
Name Description
T
| Improve this Doc View Source

Add<T>(TomlTable, String, IEnumerable<T>, TomlTable.TableTypes)

Declaration
public static TomlObjectFactory.Result<TomlTableArray> Add<T>(this TomlTable table, string key, IEnumerable<T> tableArray, TomlTable.TableTypes tableType = TomlTable.TableTypes.Default)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IEnumerable<T> tableArray
TomlTable.TableTypes tableType
Returns
Type Description
TomlObjectFactory.Result<TomlTableArray>
Type Parameters
Name Description
T
| Improve this Doc View Source

CreateAttached(TomlObject, Boolean)

Declaration
public static TomlBool CreateAttached(this TomlObject rootSource, bool value)
Parameters
Type Name Description
TomlObject rootSource
System.Boolean value
Returns
Type Description
TomlBool
| Improve this Doc View Source

CreateAttached(TomlObject, IEnumerable<Boolean>)

Declaration
public static TomlArray CreateAttached(this TomlObject rootSource, IEnumerable<bool> values)
Parameters
Type Name Description
TomlObject rootSource
System.Collections.Generic.IEnumerable<System.Boolean> values
Returns
Type Description
TomlArray
| Improve this Doc View Source

CreateAttached(TomlObject, IEnumerable<DateTime>)

Declaration
public static TomlArray CreateAttached(this TomlObject rootSource, IEnumerable<DateTime> values)
Parameters
Type Name Description
TomlObject rootSource
System.Collections.Generic.IEnumerable<System.DateTime> values
Returns
Type Description
TomlArray
| Improve this Doc View Source

CreateAttached(TomlObject, IEnumerable<DateTimeOffset>)

Declaration
public static TomlArray CreateAttached(this TomlObject rootSource, IEnumerable<DateTimeOffset> values)
Parameters
Type Name Description
TomlObject rootSource
System.Collections.Generic.IEnumerable<System.DateTimeOffset> values
Returns
Type Description
TomlArray
| Improve this Doc View Source

CreateAttached(TomlObject, IEnumerable<Double>)

Declaration
public static TomlArray CreateAttached(this TomlObject rootSource, IEnumerable<double> values)
Parameters
Type Name Description
TomlObject rootSource
System.Collections.Generic.IEnumerable<System.Double> values
Returns
Type Description
TomlArray
| Improve this Doc View Source

CreateAttached(TomlObject, IEnumerable<Int32>)

Declaration
public static TomlArray CreateAttached(this TomlObject rootSource, IEnumerable<int> values)
Parameters
Type Name Description
TomlObject rootSource
System.Collections.Generic.IEnumerable<System.Int32> values
Returns
Type Description
TomlArray
| Improve this Doc View Source

CreateAttached(TomlObject, IEnumerable<Int64>)

Declaration
public static TomlArray CreateAttached(this TomlObject rootSource, IEnumerable<long> values)
Parameters
Type Name Description
TomlObject rootSource
System.Collections.Generic.IEnumerable<System.Int64> values
Returns
Type Description
TomlArray
| Improve this Doc View Source

CreateAttached(TomlObject, IEnumerable<Single>)

Declaration
public static TomlArray CreateAttached(this TomlObject rootSource, IEnumerable<float> values)
Parameters
Type Name Description
TomlObject rootSource
System.Collections.Generic.IEnumerable<System.Single> values
Returns
Type Description
TomlArray
| Improve this Doc View Source

CreateAttached(TomlObject, IEnumerable<String>)

Declaration
public static TomlArray CreateAttached(this TomlObject rootSource, IEnumerable<string> values)
Parameters
Type Name Description
TomlObject rootSource
System.Collections.Generic.IEnumerable<System.String> values
Returns
Type Description
TomlArray
| Improve this Doc View Source

CreateAttached(TomlObject, IEnumerable<TimeSpan>)

Declaration
public static TomlArray CreateAttached(this TomlObject rootSource, IEnumerable<TimeSpan> values)
Parameters
Type Name Description
TomlObject rootSource
System.Collections.Generic.IEnumerable<System.TimeSpan> values
Returns
Type Description
TomlArray
| Improve this Doc View Source

CreateAttached(TomlObject, DateTimeOffset)

Declaration
public static TomlOffsetDateTime CreateAttached(this TomlObject rootSource, DateTimeOffset value)
Parameters
Type Name Description
TomlObject rootSource
System.DateTimeOffset value
Returns
Type Description
TomlOffsetDateTime
| Improve this Doc View Source

CreateAttached(TomlObject, Double)

Declaration
public static TomlFloat CreateAttached(this TomlObject rootSource, double value)
Parameters
Type Name Description
TomlObject rootSource
System.Double value
Returns
Type Description
TomlFloat
| Improve this Doc View Source

CreateAttached(TomlObject, Int64)

Declaration
public static TomlInt CreateAttached(this TomlObject rootSource, long value)
Parameters
Type Name Description
TomlObject rootSource
System.Int64 value
Returns
Type Description
TomlInt
| Improve this Doc View Source

CreateAttached(TomlObject, Object, TomlTable.TableTypes)

Declaration
public static TomlTable CreateAttached(this TomlObject rootSource, object obj, TomlTable.TableTypes type = TomlTable.TableTypes.Default)
Parameters
Type Name Description
TomlObject rootSource
System.Object obj
TomlTable.TableTypes type
Returns
Type Description
TomlTable
| Improve this Doc View Source

CreateAttached(TomlObject, String)

Declaration
public static TomlString CreateAttached(this TomlObject rootSource, string value)
Parameters
Type Name Description
TomlObject rootSource
System.String value
Returns
Type Description
TomlString
| Improve this Doc View Source

CreateAttached(TomlObject, TimeSpan)

Declaration
public static TomlDuration CreateAttached(this TomlObject rootSource, TimeSpan value)
Parameters
Type Name Description
TomlObject rootSource
System.TimeSpan value
Returns
Type Description
TomlDuration
| Improve this Doc View Source

CreateAttached<TValue>(TomlObject, IDictionary<String, TValue>, TomlTable.TableTypes)

Declaration
public static TomlTable CreateAttached<TValue>(this TomlObject rootSource, IDictionary<string, TValue> tableData, TomlTable.TableTypes type = TomlTable.TableTypes.Default)
Parameters
Type Name Description
TomlObject rootSource
System.Collections.Generic.IDictionary<System.String, TValue> tableData
TomlTable.TableTypes type
Returns
Type Description
TomlTable
Type Parameters
Name Description
TValue
| Improve this Doc View Source

CreateAttached<T>(TomlObject, IEnumerable<T>, TomlTable.TableTypes)

Declaration
public static TomlTableArray CreateAttached<T>(this TomlObject rootSource, IEnumerable<T> obj, TomlTable.TableTypes type = TomlTable.TableTypes.Default)
Parameters
Type Name Description
TomlObject rootSource
System.Collections.Generic.IEnumerable<T> obj
TomlTable.TableTypes type
Returns
Type Description
TomlTableArray
Type Parameters
Name Description
T
| Improve this Doc View Source

CreateEmptyAttachedArray(TomlObject)

Declaration
public static TomlArray CreateEmptyAttachedArray(this TomlObject rootSource)
Parameters
Type Name Description
TomlObject rootSource
Returns
Type Description
TomlArray
| Improve this Doc View Source

CreateEmptyAttachedTable(TomlObject, TomlTable.TableTypes)

Declaration
public static TomlTable CreateEmptyAttachedTable(this TomlObject rootSource, TomlTable.TableTypes type = TomlTable.TableTypes.Default)
Parameters
Type Name Description
TomlObject rootSource
TomlTable.TableTypes type
Returns
Type Description
TomlTable
| Improve this Doc View Source

CreateEmptyAttachedTableArray(TomlObject)

Declaration
public static TomlTableArray CreateEmptyAttachedTableArray(this TomlObject rootSource)
Parameters
Type Name Description
TomlObject rootSource
Returns
Type Description
TomlTableArray
| Improve this Doc View Source

Update(TomlTable, String, Boolean)

Declaration
public static TomlObjectFactory.Result<TomlBool> Update(this TomlTable table, string key, bool value)
Parameters
Type Name Description
TomlTable table
System.String key
System.Boolean value
Returns
Type Description
TomlObjectFactory.Result<TomlBool>
| Improve this Doc View Source

Update(TomlTable, String, IEnumerable<Boolean>)

Declaration
public static TomlObjectFactory.Result<TomlArray> Update(this TomlTable table, string key, IEnumerable<bool> array)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IEnumerable<System.Boolean> array
Returns
Type Description
TomlObjectFactory.Result<TomlArray>
| Improve this Doc View Source

Update(TomlTable, String, IEnumerable<DateTime>)

Declaration
public static TomlObjectFactory.Result<TomlArray> Update(this TomlTable table, string key, IEnumerable<DateTime> array)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IEnumerable<System.DateTime> array
Returns
Type Description
TomlObjectFactory.Result<TomlArray>
| Improve this Doc View Source

Update(TomlTable, String, IEnumerable<DateTimeOffset>)

Declaration
public static TomlObjectFactory.Result<TomlArray> Update(this TomlTable table, string key, IEnumerable<DateTimeOffset> array)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IEnumerable<System.DateTimeOffset> array
Returns
Type Description
TomlObjectFactory.Result<TomlArray>
| Improve this Doc View Source

Update(TomlTable, String, IEnumerable<Double>)

Declaration
public static TomlObjectFactory.Result<TomlArray> Update(this TomlTable table, string key, IEnumerable<double> array)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IEnumerable<System.Double> array
Returns
Type Description
TomlObjectFactory.Result<TomlArray>
| Improve this Doc View Source

Update(TomlTable, String, IEnumerable<Int32>)

Declaration
public static TomlObjectFactory.Result<TomlArray> Update(this TomlTable table, string key, IEnumerable<int> array)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IEnumerable<System.Int32> array
Returns
Type Description
TomlObjectFactory.Result<TomlArray>
| Improve this Doc View Source

Update(TomlTable, String, IEnumerable<Int64>)

Declaration
public static TomlObjectFactory.Result<TomlArray> Update(this TomlTable table, string key, IEnumerable<long> array)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IEnumerable<System.Int64> array
Returns
Type Description
TomlObjectFactory.Result<TomlArray>
| Improve this Doc View Source

Update(TomlTable, String, IEnumerable<Single>)

Declaration
public static TomlObjectFactory.Result<TomlArray> Update(this TomlTable table, string key, IEnumerable<float> array)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IEnumerable<System.Single> array
Returns
Type Description
TomlObjectFactory.Result<TomlArray>
| Improve this Doc View Source

Update(TomlTable, String, IEnumerable<String>)

Declaration
public static TomlObjectFactory.Result<TomlArray> Update(this TomlTable table, string key, IEnumerable<string> array)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IEnumerable<System.String> array
Returns
Type Description
TomlObjectFactory.Result<TomlArray>
| Improve this Doc View Source

Update(TomlTable, String, IEnumerable<TimeSpan>)

Declaration
public static TomlObjectFactory.Result<TomlArray> Update(this TomlTable table, string key, IEnumerable<TimeSpan> array)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IEnumerable<System.TimeSpan> array
Returns
Type Description
TomlObjectFactory.Result<TomlArray>
| Improve this Doc View Source

Update(TomlTable, String, DateTimeOffset)

Declaration
public static TomlObjectFactory.Result<TomlOffsetDateTime> Update(this TomlTable table, string key, DateTimeOffset value)
Parameters
Type Name Description
TomlTable table
System.String key
System.DateTimeOffset value
Returns
Type Description
TomlObjectFactory.Result<TomlOffsetDateTime>
| Improve this Doc View Source

Update(TomlTable, String, Double)

Declaration
public static TomlObjectFactory.Result<TomlFloat> Update(this TomlTable table, string key, double value)
Parameters
Type Name Description
TomlTable table
System.String key
System.Double value
Returns
Type Description
TomlObjectFactory.Result<TomlFloat>
| Improve this Doc View Source

Update(TomlTable, String, Int64)

Declaration
public static TomlObjectFactory.Result<TomlInt> Update(this TomlTable table, string key, long value)
Parameters
Type Name Description
TomlTable table
System.String key
System.Int64 value
Returns
Type Description
TomlObjectFactory.Result<TomlInt>
| Improve this Doc View Source

Update(TomlTable, String, Object, TomlTable.TableTypes)

Declaration
public static TomlObjectFactory.Result<TomlTable> Update(this TomlTable table, string key, object obj, TomlTable.TableTypes type = TomlTable.TableTypes.Default)
Parameters
Type Name Description
TomlTable table
System.String key
System.Object obj
TomlTable.TableTypes type
Returns
Type Description
TomlObjectFactory.Result<TomlTable>
| Improve this Doc View Source

Update(TomlTable, String, String)

Declaration
public static TomlObjectFactory.Result<TomlString> Update(this TomlTable table, string key, string value)
Parameters
Type Name Description
TomlTable table
System.String key
System.String value
Returns
Type Description
TomlObjectFactory.Result<TomlString>
| Improve this Doc View Source

Update(TomlTable, String, TimeSpan)

Declaration
public static TomlObjectFactory.Result<TomlDuration> Update(this TomlTable table, string key, TimeSpan value)
Parameters
Type Name Description
TomlTable table
System.String key
System.TimeSpan value
Returns
Type Description
TomlObjectFactory.Result<TomlDuration>
| Improve this Doc View Source

Update<T>(TomlTable, String, IDictionary<String, T>, TomlTable.TableTypes)

Declaration
public static TomlObjectFactory.Result<TomlTable> Update<T>(this TomlTable table, string key, IDictionary<string, T> tableData, TomlTable.TableTypes type = TomlTable.TableTypes.Default)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IDictionary<System.String, T> tableData
TomlTable.TableTypes type
Returns
Type Description
TomlObjectFactory.Result<TomlTable>
Type Parameters
Name Description
T
| Improve this Doc View Source

Update<T>(TomlTable, String, IEnumerable<T>, TomlTable.TableTypes)

Declaration
public static TomlObjectFactory.Result<TomlTableArray> Update<T>(this TomlTable table, string key, IEnumerable<T> items, TomlTable.TableTypes type = TomlTable.TableTypes.Default)
Parameters
Type Name Description
TomlTable table
System.String key
System.Collections.Generic.IEnumerable<T> items
TomlTable.TableTypes type
Returns
Type Description
TomlObjectFactory.Result<TomlTableArray>
Type Parameters
Name Description
T
  • Improve this Doc
  • View Source
Back to top Generated by DocFX