コード例 #1
0
        private Parts.Variable ParseVariableNode(XmlNode xNode)
        {
            var variable = new Parts.Variable();

            variable.language =
                (Parts.Variable.Language)
                Enum.Parse(typeof(Parts.Variable.Language), xNode.Attributes["language"].Value.ToUpper());
            variable.name  = xNode.Attributes["name"].Value;
            variable.value = xNode.Attributes["value"].Value;

            return(variable);
        }
コード例 #2
0
ファイル: Parser.cs プロジェクト: alex-polosky/EntityEngine
        private Parts.Variable ParseVariableNode(XmlNode xNode)
        {
            var variable = new Parts.Variable();

            variable.language =
                (Parts.Variable.Language)
                    Enum.Parse(typeof(Parts.Variable.Language), xNode.Attributes["language"].Value.ToUpper());
            variable.name = xNode.Attributes["name"].Value;
            variable.value = xNode.Attributes["value"].Value;

            return variable;
        }