• Generates code to retrieve an integer property from the system.

    Parameters

    • name: string

      The name of the property.

    • OptionaldefaultValue: string

      The default value of the property (optional).

    Returns string

    The generated code as a string.