According to Microsoft's documentation on System.Security.Cryptography.Aes, the key size can simply be changed by setting the KeySize
property.
Does changing the key size automatically generate a new random key of the new key size? The documentation is not clear.