© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
6 replies
Arch Leaders

Best way to uniquely hash an array of undefined length?

I need to recursively hash a tree of arrays/dicts, is there a preferred/best way to hash the values quickly?

Essentially I need to cache equality, the idea being to hash every array in the tree once and lookup the object pointer, otherwise I'd have to generate the hash many times when comparing the arrays.

If there's a better way to achieve that entirely, I'm open to that too.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Finding all possibilities of N length in an array
C#CC# / help
9mo ago
✅ Best way to return Tuple<string, string> as an Array?
C#CC# / help
4y ago
✅ Best way to display a 2D array
C#CC# / help
4y ago
How do I check the length of an array when that array is null?
C#CC# / help
4y ago