Method ThrowIfNoHash
ThrowIfNoHash(ulong, FixedString512Bytes)
Validation that the SourceGenerators return valid hashes for "default serializers".
Declaration
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
public static void ThrowIfNoHash(ulong hash, FixedString512Bytes context)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | hash | Hash to check. |
| FixedString512Bytes | context |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException |