public ReadAttributeInt ( string attributeName ) : int? | ||
attributeName | string | Name of the attribute to read. |
return | int? |
private void ReadIssue(SparseReader reader, object parent) { Context context = (Context)parent; string name = reader.ReadAttributeString(SchemaStrings.AttributeName); string certainty = reader.ReadAttributeString(SchemaStrings.AttributeCertainty); string level = reader.ReadAttributeString(SchemaStrings.AttributeLevel); string path = reader.ReadAttributeString(SchemaStrings.AttributePath); string file = reader.ReadAttributeString(SchemaStrings.AttributeFile); int? line = reader.ReadAttributeInt(SchemaStrings.AttributeLine); string message = reader.ReadElementContentAsString(); context.RefineIssue(message, name, certainty, level, path, file, line); if (IssueRead != null) { IssueRead(context); } context.ClearIssue(); }
private void ReadIssue(SparseReader reader, object parent) { Context context = (Context)parent; string resolutionName = reader.ReadAttributeString(SchemaStrings.AttributeName); string certainty = reader.ReadAttributeString(SchemaStrings.AttributeCertainty); string level = reader.ReadAttributeString(SchemaStrings.AttributeLevel); string path = reader.ReadAttributeString(SchemaStrings.AttributePath); string file = reader.ReadAttributeString(SchemaStrings.AttributeFile); int? line = reader.ReadAttributeInt(SchemaStrings.AttributeLine); string message = null; if (_readingProjectFile) { // FxCop does not emit a resolution name attribute in cases where it is "Default" resolutionName = resolutionName ?? "Default"; reader.ReadChildren(SchemaStrings.ElementIssue, parent, out message); context.RefineIssue(message, message == null ? resolutionName : null, certainty, level, path, file, line); } else { // An FxCop project file Issue has a fully-formed output // message as its element content. message = reader.ReadElementContentAsString(); context.RefineIssue(message, resolutionName, certainty, level, path, file, line); } if (ResultRead != null) { ResultRead(context); } context.ClearIssue(); }
private void ReadIssue(SparseReader reader, object parent) { Context context = (Context)parent; string name = reader.ReadAttributeString(SchemaStrings.AttributeName); string certainty = reader.ReadAttributeString(SchemaStrings.AttributeCertainty); string level = reader.ReadAttributeString(SchemaStrings.AttributeLevel); string path = reader.ReadAttributeString(SchemaStrings.AttributePath); string file = reader.ReadAttributeString(SchemaStrings.AttributeFile); int? line = reader.ReadAttributeInt(SchemaStrings.AttributeLine); string message = reader.ReadElementContentAsString(); context.RefineIssue(message, name, certainty, level, path, file, line); if (ResultRead != null) { ResultRead(context); } context.ClearIssue(); }