/// <summary> /// Clones the inden input. /// </summary> /// <returns></returns> public override System.Object Clone() { IndexInput clone = null; try { SqlIndexInput input = new SqlIndexInput(this); clone = (IndexInput)input; } catch (System.Exception) { } return(clone); }
/// <summary> /// Initializes a new instance of the <see cref="SqlIndexInput"/> class. /// </summary> /// <param name="cloneInput">The clone input.</param> public SqlIndexInput(SqlIndexInput cloneInput) { try { _sqlServerDirectory = cloneInput._sqlServerDirectory; _sqlStorageProviderUtility = cloneInput._sqlStorageProviderUtility; _indexInput = cloneInput._indexInput.Clone() as IndexInput; } catch (Exception) { // sometimes we get access denied on the 2nd stream...but not always. I haven't tracked it down yet // but this covers our tail until I do } }