if 是关键字。 通常,在将新关键字添加到 C# 语言的同时,也会将它们添加为上下文关键字,以便避免破坏用该语言的早期版本编写的程序。 abstract as base bool break byte case catch char checked class const continue decimal default 委托 do double else enum event explicit extern false finally fixed float for foreach goto if implicit in in(泛型修饰符) int interface internal 为 lock long 命名空间 new null object operator out out(泛型修饰符) override params private protected public readonly ref return sbyte sealed short sizeof stackalloc static string 结构 switch this throw true try typeof uint ulong unchecked unsafe ushort using virtual void volatile while 上下文关键字 where)在两个或更多个上下文中具有特殊含义。 添加 别名 ascending descending dynamic from get global group into join let orderby partial(类型) partial(方法) remove select set value var where(泛型类型约束) where(查询子句) yield 请参见 转自MSDN 原文http://msdn.microsoft.com/zh-cn/library/x53a06bb.aspx 相关文章: