Show / Hide Table of Contents

Class TomlObjectFactory.Result<T>

Result object of a factory operation. Foundation for the fluent API that allows to construct complex object Graphs via TomlObjectFactory methods.

Inheritance
System.Object
TomlObjectFactory.Result<T>
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 sealed class Result<T> : TomlObjectFactory.IResult where T : TomlObject
Type Parameters
Name Description
T

The type of TOML object that was created/updated

Properties

| Improve this Doc View Source

Added

Gets the object that was added/updated.

Declaration
public T Added { get; }
Property Value
Type Description
T
| Improve this Doc View Source

And

Gets the table owning the added/updated TOML object.

Declaration
public TomlTable And { get; }
Property Value
Type Description
TomlTable
| Improve this Doc View Source

Owner

Gets the table owning the added/updated TOML object.

Declaration
public TomlTable Owner { get; }
Property Value
Type Description
TomlTable

Methods

| Improve this Doc View Source

ConfigureAdded(Action<T>)

Allows further modification of the added/updated object via a user defined System.Action<T>.

Declaration
public TomlObjectFactory.Result<T> ConfigureAdded(Action<T> configure)
Parameters
Type Name Description
System.Action<T> configure

Action configuration action

Returns
Type Description
TomlObjectFactory.Result<T>

Gets this - fluent API continuation.

Exceptions
Type Condition
System.ArgumentNullException

Throw if configure is null

  • Improve this Doc
  • View Source
Back to top Generated by DocFX