public static string ComputeSHA1(this IObject3D object3D) { // ******************************************************************************************************************************* // TODO: We must ensure we always compute with a stream that marks for UTF encoding with BOM, irrelevant of in-memory or on disk // ******************************************************************************************************************************* // SHA1 value is based on UTF8 encoded file contents using (var memoryStream = new MemoryStream(Encoding.UTF8.GetBytes(object3D.ToJson()))) { return(Object3D.ComputeSHA1(memoryStream)); } }