public override bool Equals(object obj) { var other = obj as LanguageDecompilerSettings; return(other != null && decompilerSettings.Equals(other.decompilerSettings)); }
public bool Equals(DecompilationOptions other) { if (other == null) { return(false); } if (FullDecompilation != other.FullDecompilation) { return(false); } if ((SaveAsProjectDirectory ?? string.Empty).ToUpperInvariant() != (other.SaveAsProjectDirectory ?? string.Empty).ToUpperInvariant()) { return(false); } if (DontReferenceStdLib != other.DontReferenceStdLib) { return(false); } if (ProjectFiles == null) { if (other.ProjectFiles != null) { return(false); } } else { if (ProjectFiles.Count != other.ProjectFiles.Count) { return(false); } for (int i = 0; i < ProjectFiles.Count; i++) { if (!ProjectFiles[i].Equals(other.ProjectFiles[i])) { return(false); } } } if (ProjectGuid != other.ProjectGuid) { return(false); } if (DontShowCreateMethodBodyExceptions != other.DontShowCreateMethodBodyExceptions) { return(false); } // Ignore: CancellationToken if (!DecompilerSettings.Equals(other.DecompilerSettings)) { return(false); } // Ignore: TextViewState return(true); }
public override bool Equals(object?obj) { var other = obj as CSharpVBDecompilerSettings; return(!(other is null) && decompilerSettings.Equals(other.decompilerSettings)); }
protected override bool EqualsCore(object obj) { var other = obj as CSharpVBDecompilerSettings; return(other != null && decompilerSettings.Equals(other.decompilerSettings)); }