コード例 #1
0
        public override bool Equals(object obj)
        {
            var settings = obj as CompilationSettings;

            return(settings != null &&
                   LanguageVersion.Equals(settings.LanguageVersion) &&
                   Enumerable.SequenceEqual(Defines, settings.Defines) &&
                   CompilationOptions.Equals(settings.CompilationOptions));
        }
コード例 #2
0
        public override bool Equals(object obj)
        {
#pragma warning disable CS0436 // Type conflicts with imported type
            var settings = obj as CompilationSettings;
#pragma warning restore CS0436 // Type conflicts with imported type
            return(settings != null &&
                   LanguageVersion.Equals(settings.LanguageVersion) &&
                   Enumerable.SequenceEqual(Defines, settings.Defines) &&
                   CompilationOptions.Equals(settings.CompilationOptions));
        }