public abstract class CommonHeaderBase<TTypeIdentifier> : ICommonHeader<TTypeIdentifier>
Public MustInherit Class CommonHeaderBase(Of TTypeIdentifier)
Implements ICommonHeader(Of TTypeIdentifier)
generic<typename TTypeIdentifier>
public ref class CommonHeaderBase abstract : ICommonHeader<TTypeIdentifier>
public CommonHeader(object state, byte[] binaryImage, int startIndex, int length)
{
if (length > 3)
{
TypeID = LittleEndian.ToInt32(binaryImage, startIndex);
State = state;
}
else
throw new InvalidOperationException("Malformed image");
}
CommonHeaderBaseTTypeIdentifier | Initializes a new instance of the CommonHeaderBaseTTypeIdentifier class |
State | Gets or sets any additional state information that might be needed for parsing. |
TypeID | Gets or sets the identifier used for identifying the Type to be parsed. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
ToString | Returns a string that represents the current object. (Inherited from Object) |