本文整理汇总了C#中Serialization.XMLSerialization方法的典型用法代码示例。如果您正苦于以下问题:C# Serialization.XMLSerialization方法的具体用法?C# Serialization.XMLSerialization怎么用?C# Serialization.XMLSerialization使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Serialization
的用法示例。
在下文中一共展示了Serialization.XMLSerialization方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OutputTestMatrix
public static void OutputTestMatrix(DenseMatrix ds)
{
Serialization<DenseMatrix> dt2Xml = new Serialization<DenseMatrix>();
dt2Xml.XMLSerialization(_matrixFilePath, ds);
}
示例2: OutputIndexHierarchyXml
//TunnelHealIndex = new AHPIndexHierarchy()
//{
// Name = "TunnelHealth",
// IndexType = AHPIndexValueType.SingleValue
//};
//AHPIndexHierarchy testLevel1 = new AHPIndexHierarchy()
//{
// Name = "Level1",
// IndexType = AHPIndexValueType.SingleValue
//};
//TunnelHealIndex.Children.Add(testLevel1);
//testLevel1.Parent = TunnelHealIndex;
//AHPIndexHierarchy testLevel2Node1 = new AHPIndexHierarchy()
//{
// Name = "level2Node1",
// IndexType = AHPIndexValueType.Text
//};
//AHPIndexHierarchy testLevel2Node2 = new AHPIndexHierarchy()
//{
// Name = "level2Node2",
// IndexType = AHPIndexValueType.SeriesValue
//};
//testLevel1.Children.Add(testLevel2Node1);
//testLevel1.Children.Add(testLevel2Node2);
//testLevel2Node1.Parent = testLevel1;
//testLevel2Node1.Parent = testLevel1;
public static void OutputIndexHierarchyXml(AHPIndexHierarchy TunnelHealIndex)
{
Serialization<AHPIndexHierarchy> AHPIndex2Xml = new Serialization<AHPIndexHierarchy>();
AHPIndex2Xml.XMLSerialization(_hierarchyFilePath, TunnelHealIndex);
}
示例3: OutputMatrixXml
public static void OutputMatrixXml(JudgementMatrixsGroup judgementMatrixInfos)
{
Serialization<JudgementMatrixsGroup> Matrix2Xml = new Serialization<JudgementMatrixsGroup>();
// string _matrixFilePath = Directory.GetCurrentDirectory().ToString() + @"tools\Hierarchy.xml";
Matrix2Xml.XMLSerialization(_matrixFilePath, judgementMatrixInfos);
}
示例4: OutputDatatable
public static void OutputDatatable(DataTable dt)
{
Serialization<DataTable> dt2Xml = new Serialization<DataTable>();
dt2Xml.XMLSerialization(_matrixFilePath, dt);
}