
C#
文章平均质量分 79
hillspring
充实奋斗每一天!
展开
-
求解:《C#高级编程》第11章“反射”问题!谢谢大虾啦……
代码出自《C#高级编程》第11章“反射”,问题在文中红色注释部分。 //===========================WhatsNewAttribute.cs :using System;using System.Collections.Generic;using System.Text;namespace hillspring.WhatsNewAttributes{原创 2006-11-27 11:06:00 · 1012 阅读 · 1 评论 -
C# 制作向导
声明:本文根据网络资料,改编而成1.FormBase界面:有“帮助,上一步,下一步,取消”按钮,这些按钮放置在一个Panel上。namespace DataBase{ public partial class FormBase : Form { public FormBase() { Initialize转载 2008-04-24 10:25:00 · 4808 阅读 · 3 评论 -
C#遍历SQL服务器上的存储过程和表
Normal07.8 磅02falsefalsefalseMicrosoftInternetExplorer4<!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:转载 2008-05-12 15:20:00 · 1567 阅读 · 0 评论 -
C#附加一个数据库到SQL服务器
Normal07.8 磅02falsefalsefalseMicrosoftInternetExplorer4<!-- /* Font Definitions */ @font-face {font-family:宋体; p原创 2008-05-12 15:22:00 · 900 阅读 · 2 评论 -
SQL获取所有数据库名、表名、储存过程以及参数列表
[综合网络资料整理]Normal07.8 磅02falsefalsefalseMicrosoftInternetExplorer4<!-- /* Font Definitions */ @font-face {font-family:宋原创 2008-05-13 13:56:00 · 1161 阅读 · 0 评论 -
泛型LinkedList
using System;using System.Collections.Generic;using System.Text;namespace LinkedList_T_Sample{ public class Document { private string title; public string Title {原创 2008-07-31 16:39:00 · 750 阅读 · 0 评论 -
创建定制的泛型类--泛型Queue多线程读写文档--的泛型方法
using System;using System.Collections.Generic;using System.Text;using System.Threading;namespace Generic_T_Manager{ public interface IDocument { string Title { get;} string Content { get原创 2008-08-01 10:53:00 · 780 阅读 · 0 评论 -
泛型方法
using System;using System.Collections.Generic;using System.Text;using System.Collections;namespace Generic_Method{ /* //-------第一种方案--普通方法--------- public class Account { private string name;原创 2008-08-01 15:06:00 · 470 阅读 · 0 评论 -
泛型委托
#region Using directivesusing System;using System.Collections;using System.Collections.Generic;using System.Text;#endregionnamespace GenericMethodDemo{ public static class Algorithm { //1.no oper原创 2008-08-01 15:25:00 · 943 阅读 · 0 评论 -
泛型List
using System;using System.Collections.Generic;using System.Text;namespace List_T_Sample{ public class Racer { private string name; public string Name { get{retur原创 2008-07-30 18:05:00 · 555 阅读 · 0 评论 -
泛型Queue多线程读写文档
using System;using System.Collections.Generic;using System.Text;using System.Threading;namespace Queue_T_Sample{ public class Document { private string title; public strin原创 2008-07-31 10:34:00 · 845 阅读 · 0 评论 -
C#与SQL Server存储过程之二(调用):使用C#调用SQL Server的存储过程
Form上有一个button按钮,name:buttonProcedureClient。 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using Sy原创 2008-04-18 16:37:00 · 3056 阅读 · 0 评论 -
C#与SQL Server存储过程之一(创建):使用C#创建SQL Server的存储过程
通常,开发人员使用的是T-SQL来创建SQL Server的存储过程、函数和触发器。 而现在的SQL Server 2005已经完全支持.NET通用语言运行时(CLR)了。 这就意味着,你可以使用.NET的语言,如C#、VB.NET之类的来开发SQL Server的存储过程、函数和触发器。 SQL Server 和 CLR 的集成给我们带来了n多好处,如实时编译、类型安全、增强的安全性以及增转载 2008-04-18 16:29:00 · 10889 阅读 · 1 评论 -
C#多语言程序开发
C#多语言程序开发【部分资料源自网络】1,新建一个C#项目,在Form1上拖拉一个Button名为button12.将button1的Text属性设置为: "这是中文"3.在设计界面Form1的属性里找到Language,选择到英语4.将button1的Text属性设置为: "This is English"5.在主窗体定义一个静态变量:ZH 默认值为true;6原创 2008-04-03 17:41:00 · 6704 阅读 · 2 评论 -
转:C#常用代码收集
[color=red]随机密码[/color]using System;using System.Security.Cryptography;namespace ArLi.CommonPrj {public sealed class RandomStr {/********* Const and Function* ********/private static readonly int de转载 2006-11-28 15:29:00 · 1127 阅读 · 0 评论 -
《C#高级编程》第4版 Chapter6.2.3 多播委托
《C#高级编程》第4版 Chapter6.2.3 多播委托using System;namespace MulticastDelegate{ delegate void DoubleOp(double value); class MainEntryPoint { static void Main() { DoubleOp operations = new原创 2006-11-30 17:04:00 · 886 阅读 · 0 评论 -
《C#高级编程》(第4版)6.3.2:事件和委托
《C#高级编程》(第4版)6.3.2:事件和委托Form1.cs在Form1上放置button1和label1控件using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using原创 2006-12-04 17:30:00 · 925 阅读 · 0 评论 -
转:雅虎公司C#笔试题
Question 1. ( 单选 )在计算机网络中,表征数据传输可靠性的指标是1. 传输率2. 误码率3. 信息容量4. 频带利用率 Question 2. ( 单选 )以下关于链式存储结构的叙述中哪一条是不正确的?1. 结点除自身信息外还包括指针域,因此存储密度小于顺序存储结构2. 逻辑上相邻的结点物理上不必邻接3. 可以通过计算直接确定第i个结点的存储地址4. 插入、删除运算操作方便,不必移动转载 2006-12-06 15:16:00 · 801 阅读 · 0 评论 -
转:Visual C# 对话框全接触
VS.net bate 2出来也很久了,感觉还可以。早一阵子,朋友让我帮他写两个打印程序,当中用了不少的对话,在查资料的时候看到国外有一篇专门的文章介绍对话框的,就决定写这篇文章,让大家都有个好的起点。同时还着重介绍了打印那一部份,大家可以仔细研究一下,都说了很多了。现在我们开发吧! 对话框中我们常用了以下几种: 1、文件对话框(FileDialog) 它又常用到两个:转载 2006-12-13 15:57:00 · 889 阅读 · 0 评论 -
《C#高级编程》第9章:集合,ArrayList,Stack,Queue,SortedList
ArrayListusing System;using System.Collections.Generic;using System.Text;using System.Collections;namespace MyArrayList{ class Program { static void Main(string[] args) {原创 2007-01-05 16:38:00 · 745 阅读 · 0 评论 -
《C#高级编程》第9章:集合,VectorAsCollection.cs
VectorAsCollection.csusing System;using System.Collections;using System.Text;using System.Collections.Generic;namespace Wrox.ProCSharp.VectorAsCollection{ #region MainEntryPoint class Main原创 2007-01-05 16:29:00 · 713 阅读 · 0 评论 -
C#读写INI文件
C#读写INI文件【文档介绍来源网络】INI文件就是扩展名为“ini”的文件。在Windows系统中,INI文件是很多,最重要的就是“System.ini”、“System32.ini”和“Win.ini”。该文件主要存放用户所做的选择以及系统的各种参数。用户可以通过修改INI文件,来改变应用程序和系统的很多配置。但自从Windows 95的退出,在Windows系统中引入了注册表的概念,原创 2008-04-02 18:05:00 · 1156 阅读 · 1 评论 -
C#存取SQL Server数据库之一:二进制存取图片文件
创建项目1. 添加一个名为RWTest的表到 SQL Server MYTest 数据库。 表字段设置如下: a. 唯一标识字段名称为"ID",类型为Int。 b. 名称为"Description"的VarChar类型的字段,字段长度为50。 c. 名称为"ImgField" 的Image 类型的字段。 2. 启动 Vi原创 2008-04-07 15:26:00 · 2654 阅读 · 0 评论 -
C#存取SQL Server数据库之二:利用序列化进行类链表存取(ArrayList,varbinary)
创建项目1. 添加一个名为RWTest的表到 SQL Server MYTest 数据库。 表字段设置如下: a. 唯一标识字段名称为"ID",类型为Int。 b. 名称为"Description"的VarChar类型的字段,字段长度为50。 c. 名称为"Data" 的varbinary(Max) 类型的字段。 2.原创 2008-04-07 16:22:00 · 3692 阅读 · 2 评论 -
C#如何在DataGridView的RowHeader显示字符串和图标
Normal07.8 磅02falsefalsefalseMicrosoftInternetExplorer4<!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:原创 2008-06-04 10:56:00 · 9104 阅读 · 1 评论