上面的XML中,GK是根节点,我们要获取version属性的值,利用Linq怎么写呢
XElement xGK = XElement.Load("GK.xml"); string vsVersion =
xGK.Attribute("version").Value;
分类:
其他好文 时间:
2014-05-09 05:23:19
阅读次数:
434
开源分享最近一个客户要做一个将数据直接输出到指定格式的Excel模板中,略施小计,搞定其中包含了对Excel的增行和删行,打印预览,表头,表体,表尾的控制using
System;using System.Collections.Generic;using System.Linq;using Sys...
分类:
其他好文 时间:
2014-05-09 04:33:07
阅读次数:
495
? 组函数:– 类型和语法– 使用AVG、SUM、MIN、MAX、COUNT–
在组函数中使用DISTINCT关键字–
组函数中的NULL值何谓组函数组函数会对行集进行计算,为每个组提供一个结果。与单行函数不同,组函数用于对行集进行计算,从而为每个组提供一个结果。这些集合可以包含整个表,也可以包含表...
分类:
数据库 时间:
2014-05-09 03:37:18
阅读次数:
422
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Net.Mail;namespace MailGet{ public
class Utility ...
分类:
其他好文 时间:
2014-05-09 03:30:26
阅读次数:
269
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.IO;using NPOI.SS.UserModel;using
NPOI.XSSF.UserModel;na...
分类:
其他好文 时间:
2014-05-09 03:29:58
阅读次数:
318
数据库中的数字和编程语言中的数字有显著的不同,数据库中的数字可以为空,C#中的数字不能为空。int? x = null;
//此时x可以为空测试类(NullableTest)using System;using System.Collections.Generic;using
System.Linq...
分类:
其他好文 时间:
2014-05-09 03:20:29
阅读次数:
303
Given a triangle, find the minimum path sum
from top to bottom. Each step you may move to adjacent numbers on the row
below.For example, given the fol...
分类:
编程语言 时间:
2014-05-08 18:31:51
阅读次数:
399
题目链接附上代码: 1 #include 2 #include 3 #include 4 using
namespace std; 5 6 class Solution { 7 public: 8 vector twoSum(vector
&numbers, int target) ...
分类:
其他好文 时间:
2014-05-08 17:50:11
阅读次数:
253
Consider a simple function that adds the first
N integers. (e.g.sum(5) = 1 + 2 + 3 + 4 + 5 = 15).Here is a simple Python
implementation that uses recu...
分类:
其他好文 时间:
2014-05-08 17:35:09
阅读次数:
286
闲来没事,看了看sqlite的源码,突然想用c实现c++,写了如下demo
#include
#include
struct Class;
typedef struct Class _Class;
struct IMethod
{
void (*ctor)(_Class *c);
void (*dtor)(_Class *c);
int (*sum)(_Class* c);
in...
分类:
编程语言 时间:
2014-05-08 16:14:30
阅读次数:
363