Dev2.Runtime.ServiceModel.Data.RecordsetRecord.Clear C# (CSharp) Method

Clear() public method

public Clear ( ) : void
return void
        public void Clear()
        {
            _cells.Clear();
        }

Usage Example

 public void ClearWithCellsExpectedRemovesCells()
 {
     var record = new RecordsetRecord(new[]
     {
         new RecordsetCell(),
         new RecordsetCell()
     });
     Assert.AreEqual(2, record.Count);
     record.Clear();
     Assert.AreEqual(0, record.Count);
 }