internal static protected SyndicationCategory CreateCategory(SyndicationItem item)
 {
     if (item == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("item");
     }
     return(GetNonNullValue <SyndicationCategory>(item.CreateCategory(), SR.ItemCreatedNullCategory));
 }
        // My assumption is that those static methods are defined to
        // be used in the derived classes and to dispatch the actual
        // processing to each syndication element. Considering that
        // they can be overriden in each element, I assume that these
        // methods depend on the elements, not in reverse order.

        protected internal static SyndicationCategory CreateCategory(SyndicationItem item)
        {
            if (item == null)
            {
                throw new ArgumentNullException("item");
            }
            return(item.CreateCategory());
        }
 internal static protected SyndicationCategory CreateCategory(SyndicationItem item)
 {
     if (item == null)
     {
         throw new ArgumentNullException(nameof(item));
     }
     return(GetNonNullValue <SyndicationCategory>(item.CreateCategory(), SR.ItemCreatedNullCategory));
 }
Exemple #4
0
 protected internal static SyndicationCategory CreateCategory(SyndicationItem item)
 {
     if (item == null)
     {
         throw System.ServiceModel.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("item");
     }
     return(GetNonNullValue <SyndicationCategory>(item.CreateCategory(), "ItemCreatedNullCategory"));
 }
		// My assumption is that those static methods are defined to
		// be used in the derived classes and to dispatch the actual
		// processing to each syndication element. Considering that
		// they can be overriden in each element, I assume that these
		// methods depend on the elements, not in reverse order.

		protected internal static SyndicationCategory CreateCategory (SyndicationItem item)
		{
			if (item == null)
				throw new ArgumentNullException ("item");
			return item.CreateCategory ();
		}