This feels like a really basic question, but I can't figure it out anyway..
How do I get the type of System.Windows.Visibility? I need to pass the type definition to a function. More precisly I'm writing unit tests for a IValueConverter I'm writing where the target type is a System.Windows.Visibility. What do I pass as target type when calling Convert..?
public object Conv开发者_Python百科ert(object value, Type targetType, object parameter, CultureInfo culture)
typeof(System.Windows.Visibility)
Are you asking for typeof ?
typeof(System.Windows.Visibility)
typeof(System.Windows.Visibility);
will do the trick :)
lol, 3 exactly the same answers within a minute of each other :/
精彩评论