예제 #1
0
 public void AddViewNameConvention(IViewNameConvention convention)
 {
     if (convention == null)
     {
         throw new ArgumentNullException(nameof(convention), "must not be null");
     }
     _Conventions.Add(convention);
 }
예제 #2
0
        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)));
 }