private void _RegisterMultiforms(object[] multiforms)
{
var i = 0;
foreach (var multiform in multiforms)
{
if (multiform is Multiform)
{
MultiformManager.RegisterMultiform((Multiform)multiform);
}
else if (multiform is Type)
{
MultiformManager.RegisterMultiform((Type)multiform);
}
else
{
throw new MultiformRegistrationException(
String.Format(
"When registering multiforms, the given objects must either be a multiform " +
"instance or a multiform type. The object at index {0} was neither (received {1}).",
i, multiform));
}
i++;
}
}