// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. #if RAZOR_EXTENSION_DEVELOPER_MODE using System; using System.Globalization; using System.Windows.Data; namespace Microsoft.VisualStudio.RazorExtension.RazorInfo { public class NullToEnabledConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (targetType == typeof(bool)) { return value != null; } return null; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { return null; } } } #endif