private static int GetHashCode(IDataTemplateMetadata?metadata) { if (metadata is null) { return(0); } return(HashCode.Aggregate(metadata.DataType?.GetHashCode() ?? 0, (metadata.Role ?? 0).GetHashCode())); }
private static int GetHashCode([NotNull] IDataTemplateMetadata metadata) { return(HashCode.Aggregate(metadata.DataType?.GetHashCode() ?? 0, (metadata.Role ?? 0).GetHashCode())); }