public void AddViewNameConvention(IViewNameConvention convention) { if (convention == null) { throw new ArgumentNullException(nameof(convention), "must not be null"); } _Conventions.Add(convention); }
public InheritanceViewNameConvention(IViewNameConvention baseConvention) { if (baseConvention == null) { throw new ArgumentNullException(nameof(baseConvention), "must not be null"); } _BaseConvention = baseConvention; }
public static IEnumerable <ViewName> GetPossibleViewNamesFor <TViewModel>(this IViewNameConvention source) { return(source.GetPossibleViewNamesFor(typeof(TViewModel))); }