コード例 #1
0
 /// <summary>
 /// checks if we can convert the passed umbraco content into a site media image
 /// </summary>
 private static bool CanConvertImage(IUmbracoWrapper umbracoWrapper, IPublishedContent image)
 {
     return(!string.IsNullOrEmpty(image.Url) &&
            umbracoWrapper.HasProperty(image, "umbracoWidth") &&
            umbracoWrapper.HasProperty(image, "umbracoHeight"));
 }