Table of Contents

Class Union<A, B>.Case1

Namespace
UglyToad.PdfPig.Core
Assembly
UglyToad.PdfPig.Core.dll

The type representing items of the first type in a union.

public sealed class Union<A, B>.Case1 : Union<A, B>
Inheritance
Union<A, B>
Union<A, B>.Case1
Inherited Members

Constructors

Case1(A)

Create first type.

public Case1(A item)

Parameters

item A

Fields

Item

The item.

public readonly A Item

Field Value

A

Methods

Match(Action<A>, Action<B>)

public override void Match(Action<A> first, Action<B> second)

Parameters

first Action<A>
second Action<B>

Match<TResult>(Func<A, TResult>, Func<B, TResult>)

public override TResult Match<TResult>(Func<A, TResult> first, Func<B, TResult> second)

Parameters

first Func<A, TResult>
second Func<B, TResult>

Returns

TResult

Type Parameters

TResult

ToString()

public override string ToString()

Returns

string

TryGetFirst(out A)

public override bool TryGetFirst(out A a)

Parameters

a A

Returns

bool

TryGetSecond(out B)

public override bool TryGetSecond(out B b)

Parameters

b B

Returns

bool