private static UrlType GetSandboxUrlType(UrlType urlType)
{
switch (urlType)
{
case UrlType.Parse:
case UrlType.ParseSandbox:
return UrlType.ParseSandbox;
case UrlType.LibrarySite:
case UrlType.LibrarySiteSandbox:
return UrlType.LibrarySiteSandbox;
default:
// ReSharper disable once LocalizableElement
throw new ArgumentOutOfRangeException("urlType", urlType, "There is no sandbox version for this url type.");
}
}