C#数组的排序(正序逆序) 这种排序 超级简单的 !using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication4{ class P...
分类:
其他好文 时间:
2014-06-26 16:13:39
阅读次数:
195
版本为5.1.2using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Sys...
分类:
其他好文 时间:
2014-06-25 15:13:27
阅读次数:
207
看了一些关于这方面的文档,自我总结: 特性(Attribute)就是对一个方法或类做的一个额外的属性说明,也就是附加说明下面是我自己抄的一个实例程序:using System;using System.Collections.Generic;using System.Linq;using Syst....
分类:
Web程序 时间:
2014-06-25 14:18:02
阅读次数:
161
First, update the attribute input type to multiselect:UPDATE eav_attribute SETentity_type_id = '4',attribute_model = NULL,backend_model = 'eav/entity_...
分类:
其他好文 时间:
2014-06-25 14:13:24
阅读次数:
285
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net.Mail;namespace SendMessage{ class SendEmail {...
分类:
其他好文 时间:
2014-06-25 12:04:19
阅读次数:
251
0 摘要本文讲述在Visual Studio 2013(VS 2013)下调试Entity Framework 6(EF 6)源码的步骤。原则上,VS 2012也适用。本码蚁之前打算编写《Entity Framework 6 源码调试与分析》系列博文,现因个人健康原因,需要休息较长时间,不得不放弃这...
分类:
其他好文 时间:
2014-06-25 09:22:21
阅读次数:
1708
基本的思路是,在实体类中保存颜色的值或者是保存是否选中的状态(boolean),把实体的类的列表传入BaseAdapter然后调用listview实例的notifyDataSetChanged()方法进行动态更新数据。
下面是一个实例:
ListViewItem:实体类
package cn.com.demotest.entity;
public class L...
分类:
移动开发 时间:
2014-06-25 07:20:41
阅读次数:
266
var map=new Map();
map.put("a","A");map.put("b","B");map.put("c","C");
map.get("a"); //返回:A
map.entrySet() // 返回Entity[key,value]
map.containsKey('kevin') //返回:false
function Map() {
th...
分类:
编程语言 时间:
2014-06-25 00:05:28
阅读次数:
309
两种方法
(1) 使用LINQ
(2) 使用List
static void RemoveDups(string[] myStringArray)
{
// LINQ
string[] str = myStringArray.Distinct().ToArray();
...
分类:
其他好文 时间:
2014-06-25 00:00:39
阅读次数:
194
LINQ to SQL和Entity Framework都是一种包含LINQ功能的对象关系映射技术。他们之间的本质区别在于EF对数据库架构和我们查询的类型实行了更好的解耦。使用EF,我们查询的对象不再是完全对应数据库架构的C#类,而是更高层的抽象:Entity Data Model。这为我们提供了额外的灵活性,但是在性能和简单性上面也会有所损失。
LINQ to SQL由C#团队开发并在.N...
分类:
数据库 时间:
2014-06-24 17:57:56
阅读次数:
278