TryGetPropertyNameHash(out UInt64) Method

Definition

Assembly Tomlyn.dll

Attempts to get a stable hash for the current property name without materializing it.

public bool TryGetPropertyNameHash(scoped out ulong hash)

Parameters

hash
UInt64

When this method returns true, contains the property-name hash (case-sensitive) computed by the parser.

Returns

Boolean
true when the current token is a property name; otherwise false.