C#
文章平均质量分 51
wm9901
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C#之一:& 逻辑AND(Console.WriteLine("0x{0:x}",0xf8 & 0x3f);)
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args) {原创 2014-04-02 22:37:01 · 2070 阅读 · 0 评论 -
1. C#中有哪些访问修饰符,简述其访问权限
public:private:protected:internal:原创 2014-04-11 11:18:54 · 1598 阅读 · 0 评论 -
List<object>转换成IList<Word>
var words = new List();public void WriteWords(IList words){ foreach (var word in words) { }}WriteWords(words.Select(item => (Word)item).ToList()));1.words是个ob原创 2015-04-03 17:17:43 · 2191 阅读 · 0 评论 -
设计模式之简单工厂
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1{ class Program { static void Main(st翻译 2015-04-06 21:43:54 · 452 阅读 · 0 评论 -
虚方法与抽象方法有什么区别
虚方法与抽象方法有什么区别抽象方法是只有定义、没有实际方法体的函数,它只能在抽象函数中出现,并且在子类中必须重写;虚方法则有自己的函数体,已经提供了函数实现,但是允许在子类中重写或覆盖。重写的子类虚函数就是被覆盖了。抽象方法 使用abstract关键字 public abstract bool Withdraw(…);抽象方法是必须被派生类覆写的方法。抽象方法是可以看成原创 2015-04-07 22:08:21 · 2087 阅读 · 0 评论 -
策略1
namespace ConsoleApplication4{ using System; class Program { static void Main(string[] args) { Context context; //实例化不同的策略 context = n原创 2015-04-07 23:31:00 · 550 阅读 · 0 评论
分享