Пример #1
0
            protected virtual string GetLocalName(ILocalDefinition local)
            {
                string localName = local.Name.Value;

                if (pdbReader != null)
                {
                    foreach (IPrimarySourceLocation psloc in pdbReader.GetPrimarySourceLocationsForDefinitionOf(local))
                    {
                        if (psloc.Source.Length > 0)
                        {
                            localName = psloc.Source;
                            break;
                        }
                    }
                }
                return(localName);
            }