/// <inheritdoc /> /// <summary> /// Check if curently held context handle is valid. /// </summary> /// <returns>True if context handle is valid, false otherwise.</returns> public bool IsValid() { var isValid = true; try { WinSCardWrapper.IsValidContext(_contextHandle); } catch { // exception Ignored isValid = false; } return(isValid); }