C# 클래스 Microsoft.CodeAnalysis.Sarif.Driver.XmlWriterExtensions

Extension methods applied to class XmlWriter.
파일 보기 프로젝트 열기: Microsoft/sarif-sdk

공개 메소드들

메소드 설명
WriteElementIfNonempty ( this writer, string localElementName, string elementValue ) : void

Writes an element if the supplied value is not null or whitespace.

비공개 메소드들

메소드 설명
WriteElementInt ( this writer, string localElementName, int value ) : void
WriteEntryList ( this writer, string entryListName, string>.IEnumerable entryListEntries ) : void

메소드 상세

WriteElementIfNonempty() 공개 정적인 메소드

Writes an element if the supplied value is not null or whitespace.
Thrown when is null. Thrown when is not set.
public static WriteElementIfNonempty ( this writer, string localElementName, string elementValue ) : void
writer this The writer to which an element shall be written.
localElementName string The name of the element to be written.
elementValue string The element string if the element should be written; otherwise, null.
리턴 void