How to clone a SqlParameter?

Can it be done? Yes, it can. At first it seems that you cannot. There is no Clone method on SqlParameter. Or is there? Yes, there is. SqlParameter implements IClonable explicitly (look at this blog for more information on explicit and implicit interface implementation) and that is why you cannot see or use it directly. But casting the SqlParameter object to IClonable let’s you use the clone method.

Not only SqlParameter implements IClonable. All parameter classes implement it.