Class ChecksumBuilderDecoratorExtensions
Extension methods for the ChecksumBuilder class hidden behind the IDecorator<T> interface.
public static class ChecksumBuilderDecoratorExtensions
- Inheritance
-
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
- 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
doubleA 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
- ArgumentNullException
decorator
cannot be null.
CombineWith<T>(IDecorator<T>, short)
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
shortA short 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
- ArgumentNullException
decorator
cannot be null.
CombineWith<T>(IDecorator<T>, int)
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
intA int 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
- ArgumentNullException
decorator
cannot be null.
CombineWith<T>(IDecorator<T>, long)
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
longA long 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
- ArgumentNullException
decorator
cannot be null.
CombineWith<T>(IDecorator<T>, float)
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
floatA float 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
- 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
stringA 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
- ArgumentNullException
decorator
cannot be null.
CombineWith<T>(IDecorator<T>, ushort)
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
ushortA ushort 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
- ArgumentNullException
decorator
cannot be null.
CombineWith<T>(IDecorator<T>, uint)
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
uintA uint 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
- ArgumentNullException
decorator
cannot be null.
CombineWith<T>(IDecorator<T>, ulong)
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
ulongA ulong 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
- ArgumentNullException
decorator
cannot be null.