Show / Hide Table of Contents

    Class QuantumMacros

    Inheritance
    Object
    QuantumMacros
    Namespace: QFSW.QC
    Assembly: QFSW.QC.dll
    Syntax
    public static class QuantumMacros

    Methods

    ClearMacros()

    Declaration
    public static void ClearMacros()

    DefineMacro(String, String)

    Declaration
    public static void DefineMacro(string macroName, string macroExpansion)
    Parameters
    Type Name Description
    String macroName
    String macroExpansion

    DumpMacrosToFile(String)

    Declaration
    public static void DumpMacrosToFile(string filePath)
    Parameters
    Type Name Description
    String filePath

    ExpandMacros(String, Int32)

    Expands all the macros in the given text.

    Declaration
    public static string ExpandMacros(string text, int maximumExpansions = 1000)
    Parameters
    Type Name Description
    String text

    The text to expand the macros in.

    Int32 maximumExpansions

    The maximum number of macro expansions that can be performed before an exception is thrown.

    Returns
    Type Description
    String

    The macro expanded text.

    GetMacros()

    Declaration
    public static IReadOnlyDictionary<string, string> GetMacros()
    Returns
    Type Description
    IReadOnlyDictionary<String, String>

    LoadMacrosFromFile(String)

    Declaration
    public static string LoadMacrosFromFile(string filePath)
    Parameters
    Type Name Description
    String filePath
    Returns
    Type Description
    String

    RemoveMacro(String)

    Declaration
    public static void RemoveMacro(string macroName)
    Parameters
    Type Name Description
    String macroName
    Quantum Console by QFSW
    Back to top