C# Class NArrange.Core.CodeElements.ElementUtilities

Element utility methods.
Afficher le fichier Open project: MarcStan/NArrange Class Usage Examples

Méthodes publiques

Méthode Description
Format ( string format, ICodeElement codeElement ) : string

Gets a string representation of a code element using the specified format.

GetAttribute ( ElementAttributeType attributeType, ICodeElement codeElement ) : string

Gets the string representation of a code element attribute.

ProcessElementTree ( ICodeElement codeElement, Action action ) : void

Processes each element in a code element tree.

Private Methods

Méthode Description
GetAttributesAttribute ( ICodeElement codeElement ) : string

Gets the Attributes attribute.

GetTypeAttribute ( ICodeElement codeElement ) : string

Gets the type attribute.

Method Details

Format() public static méthode

Gets a string representation of a code element using the specified format.
public static Format ( string format, ICodeElement codeElement ) : string
format string The format.
codeElement ICodeElement The code element.
Résultat string

GetAttribute() public static méthode

Gets the string representation of a code element attribute.
public static GetAttribute ( ElementAttributeType attributeType, ICodeElement codeElement ) : string
attributeType ElementAttributeType Type of the attribute.
codeElement ICodeElement The code element.
Résultat string

ProcessElementTree() public static méthode

Processes each element in a code element tree.
public static ProcessElementTree ( ICodeElement codeElement, Action action ) : void
codeElement ICodeElement Code element to process.
action Action Action that performs processing.
Résultat void