Mosa.Utility.CodeDomCompiler.CompilerSettings.IsEqual C# (CSharp) 메소드

IsEqual() 공개 메소드

public IsEqual ( CompilerSettings other ) : bool
other CompilerSettings
리턴 bool
        public bool IsEqual(CompilerSettings other)
        {
            if (other == null)
                return false;

            if (codeSource != other.codeSource)
                return false;

            if (additionalSource != other.additionalSource)
                return false;

            if (unsafeCode != other.unsafeCode)
                return false;

            if (language != other.language)
                return false;

            if (doNotReferenceMscorlib != other.doNotReferenceMscorlib)
                return false;

            if (references.Count != other.references.Count)
                return false;

            foreach (string file in references)
                if (!other.references.Contains(file))
                    return false;

            return true;
        }