/// <summary>
        /// Returns true if the other SearchClass has the same value and attribute values.
        /// </summary>
        /// <param name="cdsElement">a SearchClass instance; derived classes don't count</param>
        /// <returns></returns>
        public override bool Equals(object cdsElement)
        {
            SearchClass other = (SearchClass)cdsElement;

            if (this.GetType() == other.GetType())
            {
                if (this.m_ClassName.Equals(other.m_ClassName))
                {
                    if (this.m_DerivedFrom.Equals(other.m_DerivedFrom))
                    {
                        if (this.m_FriendlyName.Equals(other.m_FriendlyName))
                        {
                            if (this.m_IncludeDerived.Equals(other.m_IncludeDerived))
                            {
                                return(true);
                            }
                        }
                    }
                }
            }
            return(false);
        }
Ejemplo n.º 2
0
		/// <summary>
		/// <para>
		/// Removes a search class category for the container. Search classes give indication
		/// of what types of items are found as descendents or children of a container.
		/// </para>
		/// 
		/// <para>
		/// TODO: Should implement something that actually employs SearchClasses in the device-side implementation
		/// of CDS.
		/// </para>
		/// </summary>
		/// <param name="sc"></param>
		internal void RemoveSearchClass (SearchClass sc)
		{
			this.m_Properties.RemoveVal (T[_UPNP.searchClass], sc);
		}
Ejemplo n.º 3
0
		/// <summary>
		/// <para>
		/// Adds a search class category for the container. Search classes give indication
		/// of what types of items are found as descendents or children of a container.
		/// </para>
		/// 
		/// <para>
		/// TODO: Should implement something that actually employs SearchClasses in the device-side implementation
		/// of CDS.
		/// </para>
		/// </summary>
		/// <param name="sc"></param>
		internal void AddSearchClass (SearchClass sc)
		{
			this.m_Properties.AddVal(T[_UPNP.searchClass], sc);
		}