Not a valid operation.

Namespace: Meta.Numerics.Matrices
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 2.1.0.0 (2.1.0.0)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public override int GetHashCode()
Public Overrides Function GetHashCode As Integer
public:
virtual int GetHashCode() override
abstract GetHashCode : unit -> int 
override GetHashCode : unit -> int 

Return Value

Throws an InvalidOperationException.

Remarks

The GetHashCode()()()() method is used to provide a quick equality test when an object is used as a key in a Dictionary<(Of <(<'TKey, TValue>)>)> or Hashtable. Since a useful hash code of a matrix would need to involve all its elements, it is not possible to make this a fast operation. Also, since matrices are not immutable, they should not be used as hash keys. (A matrix might be changed after it had already been used as a key.) For these reasons, requesting a hash code for a matrix is not supported.

Exceptions

ExceptionCondition
System..::..NotSupportedExceptionThis method always throws this exception.

See Also