//C++ TO C# CONVERTER WARNING: 'const' methods are not available in C#: //ORIGINAL LINE: StyledRuns::Run GetRun(int index) const public StyledRuns.Run GetRun(int index) { IndexedRun run = runs_[index]; return(new Run() { style = styles_[run.style_index], start = run.start, end = run.end }); }
public void EndRunIfNeeded(int end) { if (runs_.Count == 0) { return; } IndexedRun run = runs_[runs_.Count - 1]; if (run.start == end) { // The run is empty. We can skip it. runs_.RemoveAt(runs_.Count - 1); } else { //C++ TO C# CONVERTER TODO TASK: The following line was determined to be a copy assignment (rather than a reference assignment) - this should be verified and a 'CopyFrom' method should be created: //ORIGINAL LINE: run.end = end; run.end = end; } }