Cosmos/source/Cosmos.Debug.Common/SourceInfo.cs

38 lines
No EOL
956 B
C#

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Reflection;
using Microsoft.Samples.Debugging.CorSymbolStore;
using System.Diagnostics.SymbolStore;
using System.IO;
using System.Diagnostics;
namespace Cosmos.Debug.Common {
public class SourceInfos : SortedList<uint, SourceInfo> {
}
public class SourceInfo {
public string MethodName { get; set; }
public string SourceFile { get; set; }
public int Line { get; set; }
public int Column { get; set; }
public int LineEnd { get; set; }
public int ColumnEnd { get; set; }
public static int GetIndexClosestSmallerMatch(IList<int> aList, int aValue) {
int xIdx = -1;
for (int i = 0; i < aList.Count; i++) {
if (aList[i] <= aValue) {
xIdx = i;
} else {
break;
}
}
return xIdx;
}
}
}