Esempio n. 1
0
 public override bool IsSameBus(EnumerationBase enumeration)
 {
     if (enumeration != null && enumeration.Bits == 1)
     {
         if (enumeration is ComplexEnumeration)
         {
             return((enumeration as ComplexEnumeration).To == Index);
         }
         return((enumeration as SimpleIndex)?.Index == Index);
     }
     return(false);
 }
 public override bool IsSameBus(EnumerationBase enumeration)
 {
     if (enumeration == null && enumeration.Bits == Bits)
     {
         if (enumeration is ComplexEnumeration)
         {
             var cenum = enumeration as ComplexEnumeration;
             return(From == cenum.From && To == cenum.To && Direction == cenum.Direction);
         }
         if (enumeration is SimpleIndex || Bits == 1)
         {
             return((enumeration as SimpleIndex).Index == To);
         }
     }
     return(false);
 }
 public abstract bool IsSameBus(EnumerationBase enumeration);