C# Class NArrange.Core.CodeElements.ElementUtilities

Element utility methods.
Datei anzeigen Open project: MarcStan/NArrange Class Usage Examples

Public Methods

Method 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

Method Description
GetAttributesAttribute ( ICodeElement codeElement ) : string

Gets the Attributes attribute.

GetTypeAttribute ( ICodeElement codeElement ) : string

Gets the type attribute.

Method Details

Format() public static method

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.
return string

GetAttribute() public static method

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.
return string

ProcessElementTree() public static method

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.
return void