diff options
author | David Wrighton <davidwr@microsoft.com> | 2016-04-29 04:07:33 +0300 |
---|---|---|
committer | David Wrighton <davidwr@microsoft.com> | 2016-04-29 04:07:33 +0300 |
commit | e3f41288be2ecb28d0dc4fa07ac9f9fd7fed483b (patch) | |
tree | fc558bb6eaed8f301d58df9ad21373dbc1bfbf45 /src/ILCompiler.DependencyAnalysisFramework | |
parent | ab621803a9db580ce8b6a73e7002034676c39528 (diff) | |
parent | b9bca135cc795e045de69d6eb1f7828e09d71d44 (diff) |
Merge pull request #1209 from MichalStrehovsky/sealEqualsAndGetHashCode
Seal Equals and GetHashCode on DependencyNode
Diffstat (limited to 'src/ILCompiler.DependencyAnalysisFramework')
-rw-r--r-- | src/ILCompiler.DependencyAnalysisFramework/src/DependencyNode.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ILCompiler.DependencyAnalysisFramework/src/DependencyNode.cs b/src/ILCompiler.DependencyAnalysisFramework/src/DependencyNode.cs index 6babb4de5..47ee408d5 100644 --- a/src/ILCompiler.DependencyAnalysisFramework/src/DependencyNode.cs +++ b/src/ILCompiler.DependencyAnalysisFramework/src/DependencyNode.cs @@ -46,5 +46,15 @@ namespace ILCompiler.DependencyAnalysisFramework { return GetName(); } + + public sealed override bool Equals(object obj) + { + return Object.ReferenceEquals(this, obj); + } + + public sealed override int GetHashCode() + { + return base.GetHashCode(); + } } } |