コード例 #1
0
 public bool Equals(OclCollectionType obj)
 {
     if (obj != null)
     {
         return(kind == obj.kind && elementType.Equals(obj.elementType));
     }
     else
     {
         return(false);
     }
 }
コード例 #2
0
 public bool Equals(OclTuplePart other)
 {
     return(name.Equals(other.name) && type.Equals(other.type));
 }
コード例 #3
0
ファイル: OclEnumType.cs プロジェクト: mff-uk/exolutio
 internal override bool ConformsToInternal(OclClassifier cls)
 {
     //Enums conform only to themselves and OclAny
     return(cls.Equals(this) || cls.Equals(OclAny.Type));
 }