Ejemplo n.º 1
0
        public static String Make_Doc(IList <AsmSignatureEnum> operandType)
        {
            StringBuilder sb = new StringBuilder();

            foreach (AsmSignatureEnum op in operandType)
            {
                sb.Append(AsmSignatureTools.Get_Doc(op) + " or ");
            }
            sb.Length -= 4;
            return(sb.ToString());
        }
Ejemplo n.º 2
0
 /// <summary>Return true if this Signature Element is allowed with the constraints of the provided operand</summary>
 public bool Is_Allowed(Operand op, int operandIndex)
 {
     if (op == null)
     {
         return(true);
     }
     if (operandIndex >= this._operands.Count)
     {
         return(false);
     }
     foreach (AsmSignatureEnum operandType in this._operands[operandIndex])
     {
         if (AsmSignatureTools.Is_Allowed_Operand(op, operandType))
         {
             return(true);
         }
     }
     return(false);
 }