private TView GetView <T, TView>() where TView : class { return(PropertyViews.SingleOrDefault(x => x.Property.Type == typeof(T)) as TView); }
private PropertyView GetView <T>() { return(PropertyViews.SingleOrDefault(x => x.Property.Type == typeof(T)) as PropertyView); }