Commons.Collections.ExtendedProperties.GetString C# (CSharp) Method

GetString() public method

Get a string associated with the given configuration key. *
is thrown if the key maps to an /// object that is not a String. /// ///
public GetString ( String key ) : String
key String The configuration key. ///
return String
        public String GetString(String key)
        {
            return GetString(key, null);
        }

Same methods

ExtendedProperties::GetString ( String key, String defaultValue ) : String

Usage Example

 public override void Init(ExtendedProperties configuration)
 {
     this.pluginNameAndPathSplitString = configuration.GetString("class.pluginNameAndPathSplitString");
     if (this.pluginNameAndPathSplitString == null)
         this.pluginNameAndPathSplitString = ":";
     this.viewNamePrefix = configuration.GetString("class.viewNamePrefix");
     if (this.viewNamePrefix == null)
         this.viewNamePrefix = "view/";
     this.viewNameSuffix = configuration.GetString("class.viewNameSuffix");
     if (this.viewNameSuffix == null)
         this.viewNameSuffix = ".html";
 }
All Usage Examples Of Commons.Collections.ExtendedProperties::GetString