Return to Snippet

Revision: 17759
at September 14, 2009 03:32 by manatlan


Initial Code
import clr
    clr.AddReference("System.Configuration")
    from System.Configuration import ConfigurationManager

    ConfigurationManager.AppSettings.BaseClear()
    ConfigurationManager.AppSettings.BaseAdd("lang",ArrayList(["fr",]))

    print ConfigurationManager.AppSettings["lang"] // -> fr

Initial URL

                                

Initial Description

                                

Initial Title
ironpython : create a ConfigurationManager

Initial Tags

                                

Initial Language
Python