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); } }
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); }
/// <summary> /// Default ctor /// </summary> internal DalvikReferenceType(ReferenceTypeId id, DalvikReferenceTypeManager manager) { Id = id; this.manager = manager; }