예제 #1
0
        private void EnsureClassPrepareListener(DalvikReferenceTypeManager refManager, string signature)
        {
            if (_preparers.ContainsKey(signature))
            {
                return;
            }
            var token = refManager.RegisterClassPrepareHandler(signature, OnExceptionClassPrepared);

            if (!_preparers.TryAdd(signature, token))
            {
                refManager.Remove(token);
            }
        }
예제 #2
0
        private void EnsureClassPrepareListener(DalvikReferenceTypeManager refManager, string signature)
        {
            if (_preparers.ContainsKey(signature))
                return;
            var token = refManager.RegisterClassPrepareHandler(signature, OnExceptionClassPrepared);

            if(!_preparers.TryAdd(signature, token))
                refManager.Remove(token);
        }
예제 #3
0
 /// <summary>
 /// Default ctor
 /// </summary>
 internal DalvikReferenceType(ReferenceTypeId id, DalvikReferenceTypeManager manager)
 {
     Id           = id;
     this.manager = manager;
 }
예제 #4
0
 /// <summary>
 /// Default ctor
 /// </summary>
 internal DalvikReferenceType(ReferenceTypeId id, DalvikReferenceTypeManager manager)
 {
     Id = id;
     this.manager = manager;
 }