Table of Contents

Class ChecksumBuilderDecoratorExtensions

Namespace
Cuemon.Data.Integrity
Assembly
Cuemon.Data.Integrity.dll

Extension methods for the ChecksumBuilder class hidden behind the IDecorator<T> interface.

public static class ChecksumBuilderDecoratorExtensions
Inheritance
Object
ChecksumBuilderDecoratorExtensions

Methods

CombineWith<T>(IDecorator<T>, Byte[])

Combines the additionalChecksum to the representation of this instance.

public static T CombineWith<T>(this IDecorator<T> decorator, byte[] additionalChecksum)
    where T : ChecksumBuilder

Parameters

decorator IDecorator<T>

The IDecorator<T> to extend.

additionalChecksum Byte[]

A byte[] containing a checksum of the additional data the enclosed ChecksumBuilder of the decorator must represent.

Returns

T

An updated instance of the enclosed ChecksumBuilder of the decorator.

Type Parameters

T

The type of the ChecksumBuilder.

Exceptions

System.ArgumentNullException

decorator cannot be null.

CombineWith<T>(IDecorator<T>, Double)

Combines the additionalChecksum to the representation of the enclosed ChecksumBuilder of the decorator.

public static T CombineWith<T>(this IDecorator<T> decorator, double additionalChecksum)
    where T : ChecksumBuilder

Parameters

decorator IDecorator<T>

The IDecorator<T> to extend.

additionalChecksum Double

A System.Double value containing a checksum of the additional data the enclosed ChecksumBuilder of the decorator must represent.

Returns

T

An updated instance of the enclosed ChecksumBuilder of the decorator.

Type Parameters

T

The type of the ChecksumBuilder.

Exceptions

System.ArgumentNullException

decorator cannot be null.

CombineWith<T>(IDecorator<T>, Int16)

Combines the additionalChecksum to the representation of this instance.

public static T CombineWith<T>(this IDecorator<T> decorator, short additionalChecksum)
    where T : ChecksumBuilder

Parameters

decorator IDecorator<T>

The IDecorator<T> to extend.

additionalChecksum Int16

A System.Int16 value containing a checksum of the additional data the enclosed ChecksumBuilder of the decorator must represent.

Returns

T

An updated instance of the enclosed ChecksumBuilder of the decorator.

Type Parameters

T

The type of the ChecksumBuilder.

Exceptions

System.ArgumentNullException

decorator cannot be null.

CombineWith<T>(IDecorator<T>, Int32)

Combines the additionalChecksum to the representation of this instance.

public static T CombineWith<T>(this IDecorator<T> decorator, int additionalChecksum)
    where T : ChecksumBuilder

Parameters

decorator IDecorator<T>

The IDecorator<T> to extend.

additionalChecksum Int32

A System.Int32 value containing a checksum of the additional data the enclosed ChecksumBuilder of the decorator must represent.

Returns

T

An updated instance of the enclosed ChecksumBuilder of the decorator.

Type Parameters

T

The type of the ChecksumBuilder.

Exceptions

System.ArgumentNullException

decorator cannot be null.

CombineWith<T>(IDecorator<T>, Int64)

Combines the additionalChecksum to the representation of this instance.

public static T CombineWith<T>(this IDecorator<T> decorator, long additionalChecksum)
    where T : ChecksumBuilder

Parameters

decorator IDecorator<T>

The IDecorator<T> to extend.

additionalChecksum Int64

A System.Int64 value containing a checksum of the additional data the enclosed ChecksumBuilder of the decorator must represent.

Returns

T

An updated instance of the enclosed ChecksumBuilder of the decorator.

Type Parameters

T

The type of the ChecksumBuilder.

Exceptions

System.ArgumentNullException

decorator cannot be null.

CombineWith<T>(IDecorator<T>, Single)

Combines the additionalChecksum to the representation of this instance.

public static T CombineWith<T>(this IDecorator<T> decorator, float additionalChecksum)
    where T : ChecksumBuilder

Parameters

decorator IDecorator<T>

The IDecorator<T> to extend.

additionalChecksum Single

A System.Single value containing a checksum of the additional data the enclosed ChecksumBuilder of the decorator must represent.

Returns

T

An updated instance of the enclosed ChecksumBuilder of the decorator.

Type Parameters

T

The type of the ChecksumBuilder.

Exceptions

System.ArgumentNullException

decorator cannot be null.

CombineWith<T>(IDecorator<T>, String)

Combines the additionalChecksum to the representation of this instance.

public static T CombineWith<T>(this IDecorator<T> decorator, string additionalChecksum)
    where T : ChecksumBuilder

Parameters

decorator IDecorator<T>

The IDecorator<T> to extend.

additionalChecksum String

A System.String containing a checksum of the additional data the enclosed ChecksumBuilder of the decorator must represent.

Returns

T

An updated instance of the enclosed ChecksumBuilder of the decorator.

Type Parameters

T

The type of the ChecksumBuilder.

Exceptions

System.ArgumentNullException

decorator cannot be null.

CombineWith<T>(IDecorator<T>, UInt16)

Combines the additionalChecksum to the representation of this instance.

public static T CombineWith<T>(this IDecorator<T> decorator, ushort additionalChecksum)
    where T : ChecksumBuilder

Parameters

decorator IDecorator<T>

The IDecorator<T> to extend.

additionalChecksum UInt16

A System.UInt16 value containing a checksum of the additional data the enclosed ChecksumBuilder of the decorator must represent.

Returns

T

An updated instance of the enclosed ChecksumBuilder of the decorator.

Type Parameters

T

The type of the ChecksumBuilder.

Exceptions

System.ArgumentNullException

decorator cannot be null.

CombineWith<T>(IDecorator<T>, UInt32)

Combines the additionalChecksum to the representation of this instance.

public static T CombineWith<T>(this IDecorator<T> decorator, uint additionalChecksum)
    where T : ChecksumBuilder

Parameters

decorator IDecorator<T>

The IDecorator<T> to extend.

additionalChecksum UInt32

A System.UInt32 value containing a checksum of the additional data the enclosed ChecksumBuilder of the decorator must represent.

Returns

T

An updated instance of the enclosed ChecksumBuilder of the decorator.

Type Parameters

T

The type of the ChecksumBuilder.

Exceptions

System.ArgumentNullException

decorator cannot be null.

CombineWith<T>(IDecorator<T>, UInt64)

Combines the additionalChecksum to the representation of this instance.

public static T CombineWith<T>(this IDecorator<T> decorator, ulong additionalChecksum)
    where T : ChecksumBuilder

Parameters

decorator IDecorator<T>

The IDecorator<T> to extend.

additionalChecksum UInt64

A System.UInt64 value containing a checksum of the additional data the enclosed ChecksumBuilder of the decorator must represent.

Returns

T

An updated instance of the enclosed ChecksumBuilder of the decorator.

Type Parameters

T

The type of the ChecksumBuilder.

Exceptions

System.ArgumentNullException

decorator cannot be null.

See Also