/// <summary> /// Predicate delegate that returns a value indicating if the supplied <see cref="ISyndicationExtension"/> /// represents the same <see cref="Type"/> as this <see cref="SyndicationExtension"/>. /// </summary> /// <param name="extension">The <see cref="ISyndicationExtension"/> to be compared.</param> /// <returns><b>true</b> if the <paramref name="extension"/> is the same <see cref="Type"/> as this <see cref="SyndicationExtension"/>; otherwise, <b>false</b>.</returns> /// <exception cref="ArgumentNullException">The <paramref name="extension"/> is a null reference (Nothing in Visual Basic).</exception> public static bool MatchByType(ISyndicationExtension extension) { //------------------------------------------------------------ // Validate parameter //------------------------------------------------------------ Guard.ArgumentNotNull(extension, "extension"); //------------------------------------------------------------ // Determine if search condition was met //------------------------------------------------------------ return extension.GetType() == typeof (SDataHttpExtension); }
/// <summary> /// Predicate delegate that returns a value indicating if the supplied <see cref="ISyndicationExtension"/> /// represents the same <see cref="Type"/> as this <see cref="SyndicationExtension"/>. /// </summary> /// <param name="extension">The <see cref="ISyndicationExtension"/> to be compared.</param> /// <returns><b>true</b> if the <paramref name="extension"/> is the same <see cref="Type"/> as this <see cref="SyndicationExtension"/>; otherwise, <b>false</b>.</returns> /// <exception cref="ArgumentNullException">The <paramref name="extension"/> is a null reference (Nothing in Visual Basic).</exception> public static bool MatchByType(ISyndicationExtension extension) { Guard.ArgumentNotNull(extension, "extension"); if (extension.GetType() == typeof(TrackbackSyndicationExtension)) { return(true); } else { return(false); } }
/// <summary> /// Predicate delegate that returns a value indicating if the supplied <see cref="ISyndicationExtension"/> /// represents the same <see cref="Type"/> as this <see cref="SyndicationExtension"/>. /// </summary> /// <param name="extension">The <see cref="ISyndicationExtension"/> to be compared.</param> /// <returns><b>true</b> if the <paramref name="extension"/> is the same <see cref="Type"/> as this <see cref="SyndicationExtension"/>; otherwise, <b>false</b>.</returns> /// <exception cref="ArgumentNullException">The <paramref name="extension"/> is a null reference (Nothing in Visual Basic).</exception> public static bool MatchByType(ISyndicationExtension extension) { Guard.ArgumentNotNull(extension, "extension"); if (extension.GetType() == typeof(DublinCoreMetadataTermsSyndicationExtension)) { return(true); } else { return(false); } }
//============================================================ // STATIC METHODS //============================================================ #region MatchByType(ISyndicationExtension extension) /// <summary> /// Predicate delegate that returns a value indicating if the supplied <see cref="ISyndicationExtension"/> /// represents the same <see cref="Type"/> as this <see cref="SyndicationExtension"/>. /// </summary> /// <param name="extension">The <see cref="ISyndicationExtension"/> to be compared.</param> /// <returns><b>true</b> if the <paramref name="extension"/> is the same <see cref="Type"/> as this <see cref="SyndicationExtension"/>; otherwise, <b>false</b>.</returns> /// <exception cref="ArgumentNullException">The <paramref name="extension"/> is a null reference (Nothing in Visual Basic).</exception> public static bool MatchByType(ISyndicationExtension extension) { //------------------------------------------------------------ // Validate parameter //------------------------------------------------------------ Guard.ArgumentNotNull(extension, "extension"); //------------------------------------------------------------ // Determine if search condition was met //------------------------------------------------------------ return(extension.GetType() == typeof(SDataHttpExtension)); }
/// <summary> /// Predicate delegate that returns a value indicating if the supplied <see cref="ISyndicationExtension"/> /// represents the same <see cref="Type"/> as this <see cref="SyndicationExtension"/>. /// </summary> /// <param name="extension">The <see cref="ISyndicationExtension"/> to be compared.</param> /// <returns><b>true</b> if the <paramref name="extension"/> is the same <see cref="Type"/> as this <see cref="SyndicationExtension"/>; otherwise, <b>false</b>.</returns> /// <exception cref="ArgumentNullException">The <paramref name="extension"/> is a null reference (Nothing in Visual Basic).</exception> public static bool MatchByType(ISyndicationExtension extension) { Guard.ArgumentNotNull(extension, "extension"); if (extension.GetType() == typeof(AtomMemberResources)) { return(true); } else { return(false); } }
//============================================================ // STATIC METHODS //============================================================ #region MatchByType(ISyndicationExtension extension) /// <summary> /// Predicate delegate that returns a value indicating if the supplied <see cref="ISyndicationExtension"/> /// represents the same <see cref="Type"/> as this <see cref="MyCustomSyndicationExtension"/>. /// </summary> /// <param name="extension">The <see cref="ISyndicationExtension"/> to be compared.</param> /// <returns><b>true</b> if the <paramref name="extension"/> is the same <see cref="Type"/> as this <see cref="MyCustomSyndicationExtension"/>; otherwise, <b>false</b>.</returns> /// <exception cref="ArgumentNullException">The <paramref name="extension"/> is a null reference (Nothing in Visual Basic).</exception> public static bool MatchByType(ISyndicationExtension extension) { Guard.ArgumentNotNull(extension, "extension"); //------------------------------------------------------------ // Determine if search condition was met //------------------------------------------------------------ if (extension.GetType() == typeof(MyCustomSyndicationExtension)) { return(true); } else { return(false); } }
//============================================================ // STATIC METHODS //============================================================ #region MatchByType(ISyndicationExtension extension) /// <summary> /// Predicate delegate that returns a value indicating if the supplied <see cref="ISyndicationExtension"/> /// represents the same <see cref="Type"/> as this <see cref="SyndicationExtension"/>. /// </summary> /// <param name="extension">The <see cref="ISyndicationExtension"/> to be compared.</param> /// <returns><b>true</b> if the <paramref name="extension"/> is the same <see cref="Type"/> as this <see cref="SyndicationExtension"/>; otherwise, <b>false</b>.</returns> /// <exception cref="ArgumentNullException">The <paramref name="extension"/> is a null reference (Nothing in Visual Basic).</exception> public static bool MatchByType(ISyndicationExtension extension) { //------------------------------------------------------------ // Validate parameter //------------------------------------------------------------ Guard.ArgumentNotNull(extension, "extension"); //------------------------------------------------------------ // Determine if search condition was met //------------------------------------------------------------ if (extension.GetType() == typeof(WellFormedWebCommentsSyndicationExtension)) { return(true); } else { return(false); } }
/// <summary> /// Predicate delegate that returns a value indicating if the supplied <see cref="ISyndicationExtension"/> /// represents the same <see cref="Type"/> as this <see cref="SyndicationExtension"/>. /// </summary> /// <param name="extension">The <see cref="ISyndicationExtension"/> to be compared.</param> /// <returns><b>true</b> if the <paramref name="extension"/> is the same <see cref="Type"/> as this <see cref="SyndicationExtension"/>; otherwise, <b>false</b>.</returns> /// <exception cref="ArgumentNullException">The <paramref name="extension"/> is a null reference (Nothing in Visual Basic).</exception> public static bool MatchByType(ISyndicationExtension extension) { //------------------------------------------------------------ // Validate parameter //------------------------------------------------------------ Guard.ArgumentNotNull(extension, "extension"); //------------------------------------------------------------ // Determine if search condition was met //------------------------------------------------------------ if (extension.GetType() == typeof(FeedRankSyndicationExtension)) { return true; } else { return false; } }
/// <summary> /// Predicate delegate that returns a value indicating if the supplied <see cref="ISyndicationExtension"/> /// represents the same <see cref="Type"/> as this <see cref="MyCustomSyndicationExtension"/>. /// </summary> /// <param name="extension">The <see cref="ISyndicationExtension"/> to be compared.</param> /// <returns><b>true</b> if the <paramref name="extension"/> is the same <see cref="Type"/> as this <see cref="MyCustomSyndicationExtension"/>; otherwise, <b>false</b>.</returns> /// <exception cref="ArgumentNullException">The <paramref name="extension"/> is a null reference (Nothing in Visual Basic).</exception> public static bool MatchByType(ISyndicationExtension extension) { Guard.ArgumentNotNull(extension, "extension"); //------------------------------------------------------------ // Determine if search condition was met //------------------------------------------------------------ if (extension.GetType() == typeof(MyCustomSyndicationExtension)) { return true; } else { return false; } }