摘要:
private bool nextCheck(TreeNode n) //判断同级的节点是否全选 { foreach (TreeNode tn in n.Parent.Nodes) { if (tn.Checked == false) return false; } return true; } p 阅读全文
摘要:
string类型转成byte[]: byte[] byteArray = System.Text.Encoding.Default.GetBytes ( str ); byte[]转成string: string str = System.Text.Encoding.Default.GetStrin 阅读全文
摘要:
public static long byteToLong(byte[] value) { long temp = 0; for (int i = 0; i < value.length; i++) { temp = (temp | value[i]) << 8; } return temp; } 阅读全文