Click or drag to resize

ProjectEvaluateMacros Method

Evaluate any $(PropertyName) macros in the input string.

Namespace:  Nova.CodeDOM
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax
C#
public string EvaluateMacros(
	string input,
	bool force = false,
	string sourceFileName = null,
	Dictionary<string, string> localProperties = null
)

Parameters

input
Type: SystemString
The input string.
force (Optional)
Type: SystemBoolean
True to force non-existent macros to evaluate to empty strings.
sourceFileName (Optional)
Type: SystemString
The source file name, if different from the main Project file.
localProperties (Optional)
Type: System.Collections.GenericDictionaryString, String
Local properties (macros).

Return Value

Type: String
The output string with any macros replaced with the corresponding property values.
See Also