/// <inheritdoc/> public bool Equals(Style?other) { if (other == null) { return(false); } return(Foreground.Equals(other.Foreground) && Background.Equals(other.Background) && Decoration == other.Decoration); }
/// <inheritdoc/> public bool Equals(Style?other) { if (other == null) { return(false); } return(Foreground.Equals(other.Foreground) && Background.Equals(other.Background) && Decoration == other.Decoration && string.Equals(Link, other.Link, StringComparison.Ordinal)); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (ReferenceEquals(this, obj)) { return(true); } if (obj.GetType() != typeof(ChunkStyle)) { return(false); } ChunkStyle other = (ChunkStyle)obj; return(Name == other.Name && Foreground.Equals(other.Foreground) && Background.Equals(other.Background) && FontWeight == other.FontWeight && FontStyle == other.FontStyle); }
public override bool Equals(object obj) { if (obj == null || !(obj is LuaColorScheme)) { return(false); } else { LuaColorScheme objectToCompare = obj as LuaColorScheme; return(Comments == objectToCompare.Comments && Values == objectToCompare.Values && Statements == objectToCompare.Statements && Operators == objectToCompare.Operators && SpecialOperators == objectToCompare.SpecialOperators && Background.Equals(objectToCompare.Background, StringComparison.OrdinalIgnoreCase) && Foreground.Equals(objectToCompare.Foreground, StringComparison.OrdinalIgnoreCase)); } }
public override bool Equals(object obj) { if (obj == null || !(obj is ClassicScriptColorScheme)) { return(false); } else { ClassicScriptColorScheme objectToCompare = obj as ClassicScriptColorScheme; return(Sections == objectToCompare.Sections && Values == objectToCompare.Values && References == objectToCompare.References && StandardCommands == objectToCompare.StandardCommands && NewCommands == objectToCompare.NewCommands && Comments == objectToCompare.Comments && Background.Equals(objectToCompare.Background, StringComparison.OrdinalIgnoreCase) && Foreground.Equals(objectToCompare.Foreground, StringComparison.OrdinalIgnoreCase)); } }
public override bool Equals(object obj) { if (!(obj is TransportClass other)) { return(false); } if (!Text.Equals(other.Text)) { return(false); } if (!Background.Equals(other.Background)) { return(false); } if (!Foreground.Equals(other.Foreground)) { return(false); } return(true); }
public bool Equals(DisplayColors other) { return(Foreground.Equals(other.Foreground) && Background.Equals(other.Background)); }