Endjin.Assembly.ChangeDetection.Introspection.PdbInformationReader.GetFileLine C# (CSharp) Method

GetFileLine() public method

Try to get the file name where the type is defined from the pdb via walking through some methods
public GetFileLine ( Mono.Cecil.TypeDefinition type ) : int>.KeyValuePair
type Mono.Cecil.TypeDefinition
return int>.KeyValuePair
        public KeyValuePair<string, int> GetFileLine(TypeDefinition type)
        {
            KeyValuePair<string, int> fileLine = new KeyValuePair<string, int>("", 0);

            for (int i = 0; i < type.Methods.Count; i++)
            {
                fileLine = this.GetFileLine(type.Methods[i].Body);
                if (!String.IsNullOrEmpty(fileLine.Key))
                {
                    break;
                }
            }
            return fileLine;
        }

Same methods

PdbInformationReader::GetFileLine ( Instruction ins, Mono.Cecil.MethodDefinition method, bool bSearchForward ) : int>.KeyValuePair
PdbInformationReader::GetFileLine ( MethodBody body ) : int>.KeyValuePair
PdbInformationReader::GetFileLine ( Mono.Cecil.MethodDefinition method ) : int>.KeyValuePair