How to encrypt and decrypt a string by a symmetric key

Is there any method given in the .NET class library that can be used to encrypt and decrypt a string by a symmetric key

Answer this question

How to encrypt and decrypt a string by a symmetric key