示例#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
 internal override bool ConformsToInternal(OclClassifier cls)
 {
     //Enums conform only to themselves and OclAny
     return(cls.Equals(this) || cls.Equals(OclAny.Type));
 }