I have an interface which says setMaster();
and 2 classes from which i`m setting the respective master pages based on the scenario.

I need to understand what the following code means:

```
 Control pageControl = LoadControl(pageControlPath);
 if (pageControl is IVariableMasterPageControl)
 {
     ((IVariableMasterPageControl)pageControl).setMaster();
 }

```

My Code:

Interface:

```
interface IVariableMasterPageControl
{
    void setMaster();
}

```

Classes:

```
public class VariableMasterControl1 : System.Web.UI.UserControl, IVariableMasterPageControl
{
    public void setMaster()
    {
        this.Page.MasterPageFile = ("~/ui/" + SiteConfiguration.UIID + "/MasterPageOne.Master");
    }
}

```