IsKindOfClass() public method

public IsKindOfClass ( Class aClass ) : bool
aClass Class
return bool
Esempio n. 1
0
        public override bool IsEqual(id other)
        {
            if (other == (id)this)
                return true;

            if (other.IsKindOfClass(GSNamedColor.Class) == false
                || ((GSNamedColor)other).CatalogNameComponent.IsEqualToString(_catalog_name) == false
                || ((GSNamedColor)other).ColorNameComponent.IsEqualToString(_color_name) == false)
            {
                return false;
            }
            return true;
        }
Esempio n. 2
0
        public override bool IsEqual(id other)
        {
            if (other == (id)this)
                return true;

            if (other.IsKindOfClass(GSRGBColor.Class) == false
                || ((GSRGBColor)other).RedComponent != _red_component
                || ((GSRGBColor)other).GreenComponent != _green_component
                || ((GSRGBColor)other).BlueComponent != _blue_component
                || ((GSRGBColor)other).AlphaComponent != _alpha_component)
            {
                return false;
            }
            return true;
        }
Esempio n. 3
0
 public override bool IsEqual(id other)
 {
     if (other == this)
         return true;
     if (other.IsKindOfClass(NSColorClass) == true)
         return false;
     else
     {
         //[self subclassResponsibility: _cmd);
         return true;
     }
 }