protected virtual string GetPropertyName(PropertyReference property)
{
PropertyDefinition propertyDefinition = property.Resolve();
if (propertyDefinition != null && propertyDefinition.Module.FilePath == this.ModuleContext.Module.FilePath)
{
try
{
return this.ModuleContext.RenamedMembersMap[propertyDefinition.MetadataToken.ToUInt32()];
}
catch (Exception ex)
{
Write(propertyDefinition.MetadataToken.ToUInt32().ToString());
WriteLine();
Write(ModuleContext.RenamedMembersMap.Count.ToString());
WriteLine();
foreach (KeyValuePair<uint, string> pair in ModuleContext.RenamedMembersMap)
{
Write(pair.Key.ToString() + " " + pair.Value);
WriteLine();
}
throw ex;
}
}
return Utilities.EscapeName(GenericHelper.GetNonGenericName(property.Name), this.Language);
}