Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Static Public Member Functions | List of all members
StringExtensions Class Reference

Static Public Member Functions

static int GetHashCode_Net35 (this string str)
 Generates a HashCode of a string using the .NET 3.5 hashing algorithm More...
 

Member Function Documentation

static int StringExtensions.GetHashCode_Net35 ( this string  str)
inlinestatic

Generates a HashCode of a string using the .NET 3.5 hashing algorithm

Note: we use this in KSP as there are some fundamental assumptions about hashing made originally and the algorithm/random seeding changed in .Net 4 that affcet this. We use this method for items that need to maintain consistency with .NET 3.5 and the assumption of consistency

Returns
int hash of teh string

The documentation for this class was generated from the following file: