Exemplo n.º 1
0
        public static Objects.JSHashlinkResult Decode(ScriptEngine eng, object a)
        {
            if (a is String || a is ConcatenatedString)
            {
                String str = a.ToString();

                try
                {
                    DecryptedHashlink hashlink = Hashlink.DecodeHashlink(a.ToString());

                    if (hashlink != null)
                    {
                        return(new Objects.JSHashlinkResult(eng.Object.InstancePrototype, hashlink));
                    }
                }
                catch { }
            }

            return(null);
        }
Exemplo n.º 2
0
 public JSHashlinkResult(ObjectInstance prototype, DecryptedHashlink obj)
     : base(prototype.Engine, ((ClrFunction)prototype.Engine.Global["HashlinkResult"]).InstancePrototype)
 {
     this.PopulateFunctions();
     this.parent = obj;
 }