当前位置: 首页>>代码示例>>C#>>正文


C# Serialization.XMLSerialization方法代码示例

本文整理汇总了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);
 }
开发者ID:zeuscn,项目名称:ShieldTunnelHealthEvaluation,代码行数:5,代码来源:XMLIO.cs

示例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);
 }
开发者ID:zeuscn,项目名称:ShieldTunnelHealthEvaluation,代码行数:31,代码来源:XMLIO.cs

示例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);
 }
开发者ID:zeuscn,项目名称:ShieldTunnelHealthEvaluation,代码行数:6,代码来源:XMLIO.cs

示例4: OutputDatatable

 public static void OutputDatatable(DataTable dt)
 {
     Serialization<DataTable> dt2Xml = new Serialization<DataTable>();
     dt2Xml.XMLSerialization(_matrixFilePath, dt);
 }
开发者ID:zeuscn,项目名称:ShieldTunnelHealthEvaluation,代码行数:5,代码来源:XMLIO.cs


注:本文中的Serialization.XMLSerialization方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。