My string is this:
fileName, callDateTime, sum(callDuration) AS 'Call Duration', callRecorder, equipmentId, errorMessage, extractionDateTime, interactionId, interrupted, extractionSuccess, stitching, bytes, conversionTime, stitchingTime, transferTime, remoteErrorMessage, remoteTransferDateTime, size, remoteTimeToTransfer, extractionStartDate, extractionEndDate, purpose, ruleName, ruleSession, fileOutputFormat, extractedBy, vaultName, vaultType, vaultRemotePath, stitchingTime
I want to remove this part of the text:
"sum (callDuration) AS 'Call Duration',"
I am using this piece of code to try to address this problem:
var getSumIndex = resultAggOrField.IndexOf($"{rowGroup.AggFunc}");
var getFieldIndex = resultAggOrField.IndexOf($"'{rowGroup.DisplayName}'");
var delete = resultAggOrField.Substring(getSumIndex, getFieldIndex);
resultAgg = resultAggOrField.Replace(delete, string.Empty);
But for some reason, he takes this part of the text:
sum(callDuration) AS 'Call Duration', callRec
rowGroup.AggFunc? OfrowGroup.DisplayName? OfgetSumIndex? OfgetFieldIndex? Ofdelete? Basically, which specific operation is producing an unexpected result?"sum(callDuration) AS 'Call Duration', callRec"I want it to be:"sum (callDuration) AS 'Call Duration',"