PHP.Core.LocalConfiguration.OutputControlSection.Parse C# (CSharp) Method

Parse() public method

Loads configuration from XML node.
public Parse ( string name, string value, XmlNode node ) : bool
name string
value string
node XmlNode
return bool
			public bool Parse(string name, string value, XmlNode node)
			{
				switch (name)
				{
					case "OutputBuffering":
                        {
                            int ivalue;
                            if (int.TryParse(value, out ivalue))
                                outputBuffering = ivalue != 0;
						    else
                                outputBuffering = (value == "true");
                        }
						break;

					case "OutputHandler":
						outputHandler = (value != "") ? new PhpCallback(value) : null;
						break;

					case "ImplicitFlush":
						implicitFlush = value == "true";
						break;

					case "ContentType":
                        this.contentType = (value != "") ? value : null;
						break;

					case "Charset":
						this.charSet = (value != "") ? value : null;
						break;

					default:
						return false;
				}
				return true;
			}
		}
LocalConfiguration.OutputControlSection