How do I hash password in .net core similar to PHP hash_password algorithm?

I have a database with has password was written in php using

password_hash(string $password, string|int|null $algo, array $options = []): string

I have the following code:

var phpPassword = "$2y$10$426VO8keeegKJAEo0bJsnebgoxQrRXQjqQ3hjHfLNgpNcRVJtSm5S"
                            var mySalt = "$2a$10$rBV2JDeWW3.vKyeQcM8fFO";
                            string myHash = BCrypt.Net.BCrypt.HashPassword(password, mySalt);

For password 1 it is not working ?