本文整理汇总了C#中Tag.LoadXml方法的典型用法代码示例。如果您正苦于以下问题:C# Tag.LoadXml方法的具体用法?C# Tag.LoadXml怎么用?C# Tag.LoadXml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tag
的用法示例。
在下文中一共展示了Tag.LoadXml方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadXml_NumberSection
protected bool LoadXml_NumberSection(XElement element)
{
Tag tag = new Tag();
tag.LoadXml(element);
List<XElement> child = tag.GetChildren(Constant.Xml.NumberTag);
for(int i = 0; i < child.Count; i++)
{
Number newNumber = new Number(0, null);
newNumber.LoadXml(child[i]);
this.Number.Add(newNumber);
}
return true;
}
示例2: LoadXml_MethodSection
protected bool LoadXml_MethodSection(XElement element)
{
Tag tag = new Tag();
tag.LoadXml(element);
List<XElement> generator
= tag.GetChildren(Alist.Constant.Xml.Assembly.Tag);
if (generator.Count > 1)
{
this.generator_external = new ExternalMethod(null);
generator.ForEach(x => this.generator_external.LoadXml(x));
}
return true;
}
示例3: LoadXml_BlockSection
protected bool LoadXml_BlockSection(XElement element)
{
Tag tag = new Tag();
tag.LoadXml(element);
List<XElement> child = tag.GetChildren(Constant.Xml.BlockTag);
for (int i = 0; i < child.Count; i++)
{
Block newBlock = new Block(this);
newBlock.LoadXml(child[i]);
this.Block.Add(newBlock);
}
return true;
}
示例4: LoadXml_InfoSection
protected bool LoadXml_InfoSection(XElement element)
{
Tag tag = new Tag();
tag.LoadXml(element);
Tag maxValueTag = new Tag();
maxValueTag.LoadXml
(tag.GetChild(Constant.Xml.Sudoku.MaxValue));
this.MaxValue = Convert.ToInt32(maxValueTag.Value);
return true;
}
示例5: LoadXml
public bool LoadXml(XElement element)
{
Tag tag = new Tag();
tag.LoadXml(element);
this.LoadXml_InfoSection
(tag.GetChild(Constant.Xml.Sudoku.InfoSection));
this.LoadXml_MethodSection
(tag.GetChild(Constant.Xml.Sudoku.MethodSection));
this.LoadXml_NumberSection
(tag.GetChild(Constant.Xml.Sudoku.NumberSection));
this.LoadXml_BlockSection
(tag.GetChild(Constant.Xml.Sudoku.BlockSection));
return true;
}