private static string CreateSignature(FxCopLogReader.Context context)
{
string[] parts = new string[] { context.Resource, context.Namespace, context.Type, context.Member };
var updated = parts
.Where(part => !String.IsNullOrEmpty(part))
.Select(part => part.TrimStart('#'));
string joinedParts = String.Join(".", updated);
if (String.IsNullOrEmpty(joinedParts))
{
return context.Module;
}
if (!String.IsNullOrEmpty(context.Module))
{
return context.Module + "!" + joinedParts;
}
else
{
return joinedParts;
}
}