コード例 #1
0
ファイル: ProjectingModule.cs プロジェクト: zhy29563/MyMEF
        public override bool Equals(object o)
        {
            ProjectingModule other = o as ProjectingModule;

            return(other != null &&
                   Projector == other.Projector &&
                   UnderlyingModule.Equals(other.UnderlyingModule));
        }
コード例 #2
0
 public override bool Equals([NotNullWhen(true)] object?o)
 {
     return(o is ProjectingModule other &&
            Projector == other.Projector &&
            UnderlyingModule.Equals(other.UnderlyingModule));
 }