BinaryFormatter ignoruje wersję zespołu

Mam następującą metodę generowania skrótu obiektu. To działa całkiem nieźle! Ale kiedy zmieniam wersję zespołu, wartość mieszania zmienia się nawet wtedy, gdy obiekt jest taki sam.

public static string GetHash(Object item)
{
    MemoryStream memoryStream = new MemoryStream();
    BinaryFormatter binaryFormatter = new BinaryFormatter();
    binaryFormatter.Serialize(memoryStream, item);
    binaryFormatter.AssemblyFormat = FormatterAssemblyStyle.Simple;

    HashAlgorithm hashAlgorithm = new MD5CryptoServiceProvider();
    memoryStream.Seek(0, SeekOrigin.Begin);

    return Convert.ToBase64String(hashAlgorithm.ComputeHash(memoryStream));
}

Jak można zignorować wersję zespołu?

questionAnswers(2)

yourAnswerToTheQuestion