C# Класс Microsoft.CodeAnalysis.Sarif.Driver.XmlWriterExtensions

Extension methods applied to class XmlWriter.
Показать файл Открыть проект

Открытые методы

Метод Описание
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