예제 #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));
 }
 public bool Equals(IIdentifer other)
 {
     return(other.GetIdentifierType().Equals(TypeCode.String) &&
            other.GetIdentifier().Equals(Defination));
 }