コード例 #1
0
 public SignatureEntry GetSignature(string sig, bool includePrivate = false)
 {
     if (includePrivate)
     {
         return(m_SignatureList.FirstOrDefault(e => e.Name == sig));
     }
     return(Signatures.FirstOrDefault(e => e.Name == sig));
 }
コード例 #2
0
        public FunctionSignature GetAcceptableSignature(int argCount)
        {
            FunctionSignature signature = Signatures.FirstOrDefault(x => x.ArgumentCount == argCount);

            if (signature == null)
            {
                signature = Signatures.FirstOrDefault(x => x.ArgumentCount == -1);
            }

            return(signature);
        }
コード例 #3
0
 public Signature GetById(int id)
 {
     // try to find the signature by the id
     return(Signatures.FirstOrDefault(s => s.Id == id));
 }