public IsKindOfClass ( |
||
aClass | ||
Résultat | bool |
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; }
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; }
public override bool IsEqual(id other) { if (other == this) return true; if (other.IsKindOfClass(NSColorClass) == true) return false; else { //[self subclassResponsibility: _cmd); return true; } }