コード例 #1
0
        public object Resolve(IIdentifer ident)
        {
            if (!(Scope is IConstRefBase cr))
            {
                return(GetNative(ident.ToText()));
            }
            if (cr.Scope.TryGetValue(ident.ToText(), out var obj))
            {
                return(obj);
            }

            return(null);
        }
コード例 #2
0
 public virtual bool Equals(IIdentifer other)
 {
     return(other.GetIdentifierType().Equals(TypeCode.Int32) &&
            other.GetIdentifier().Equals(Identifer));
 }
コード例 #3
0
 public bool Equals(IIdentifer other)
 {
     return(other.GetIdentifierType().Equals(TypeCode.String) &&
            other.GetIdentifier().Equals(Defination));
 }