BoC.Persistence.SitecoreGlass.ParametersTemplateValueProviderResult.ConvertTo C# (CSharp) Method

ConvertTo() public method

public ConvertTo ( Type type, CultureInfo culture ) : object
type System.Type
culture System.Globalization.CultureInfo
return object
        public override object ConvertTo(Type type, CultureInfo culture)
        {
            if (String.IsNullOrEmpty(_parameters))
                return null;

            var glassHtml = new GlassHtml(SitecoreContext.GetFromHttpContext());
            var genericMethod = method.MakeGenericMethod(type);
            return genericMethod.Invoke(glassHtml, new object[]{_parameters}) ??  base.ConvertTo(type, culture);
        }
ParametersTemplateValueProviderResult