public ReadElementContentAsString ( ) : string | ||
return | string |
private void ReadItem(SparseReader reader, object parent) { Context context = (Context)parent; context.Items = context.Items ?? new List <string>(); context.Items.Add(reader.ReadElementContentAsString()); }
private static void ReadResolution(SparseReader reader, object parent) { Context context = (Context)parent; context.RefineResolution( name: reader.ReadAttributeString(SchemaStrings.AttributeName), formatString: reader.ReadElementContentAsString()); }
private static void ReadExceptionType(SparseReader reader, object parent) { Context context = (Context)parent; if (context.Exception) { context.RefineExceptionType(reader.ReadElementContentAsString()); } }
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 static void ReadInnerStackTrace(SparseReader reader, object parent) { Context context = (Context)parent; context.RefineInnerStackTrace(reader.ReadElementContentAsString()); }
private static void ReadInnerExceptionMessage(SparseReader reader, object parent) { Context context = (Context)parent; context.RefineInnerExceptionMessage(reader.ReadElementContentAsString()); }
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(); }
private void ReadInnerExceptionType(SparseReader reader, object parent) { Context context = (Context)parent; context.RefineInnerExceptionType(reader.ReadElementContentAsString()); }
private static void ReadStackTrace(SparseReader reader, object parent) { Context context = (Context)parent; context.RefineStackTrace(reader.ReadElementContentAsString()); }
private static void ReadExceptionType(SparseReader reader, object parent) { Context context = (Context)parent; if (context.Exception) { context.RefineExceptionType(reader.ReadElementContentAsString()); } }
private static void ReadExceptionMessage(SparseReader reader, object parent) { Context context = (Context)parent; context.RefineExceptionMessage(reader.ReadElementContentAsString()); }