Let us see how we can generate that. To do that I am going to create simple Windows Form Application project.
Now add a person class to the project and using person class create a contact class as shown below.
Now to generate the sequence diagram for this method just right click inside button_click event as shown below.
Now VS.NET IDE will generate the following Sequence diagram for the above Button_Click event method.