Table of Contents

ToEntityTagHeaderValue Method

Definition

ToEntityTagHeaderValue(ChecksumBuilder, bool)

Creates an EntityTagHeaderValue from the specified builder.

public static EntityTagHeaderValue ToEntityTagHeaderValue(this ChecksumBuilder builder, bool isWeak = false)

Parameters

builder ChecksumBuilder

The ChecksumBuilder to extend.

isWeak bool

A value that indicates if this entity-tag header is a weak validator.

Returns

EntityTagHeaderValue

An EntityTagHeaderValue that is initiated with a hexadecimal representation of Checksum and a value that indicates if the tag is weak.

Exceptions

ArgumentNullException

builder cannot be null.