79456043

Date: 2025-02-20 23:34:25
Score: 2
Natty:
Report link

Thanks to @Charlieface, I found a solution. I can just use the existing constructor and make Random Crn being readonly.

public readonly object Clone()
{
    Patient patient = new(_seed) {
        PatientCovariates = this.PatientCovariates.ToDictionary(
            entry => entry.Key,
            entry => entry.Value.ToDictionary(
                innerEntry => innerEntry.Key,
                innerEntry => innerEntry.Value
            )
    )
    };
    return patient;
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • User mentioned (1): @Charlieface
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: KGB91