请问C#中NEW关键字的来历,是来自哪个类或是继承自谁,
谢谢大家告诉我???

解决方案 »

  1.   

    在 C# 中,new 关键字可用作运算符、修饰符或约束。
    new 运算符 
    用于创建对象和调用构造函数。new 修饰符 
    用于向基类成员隐藏继承成员。new 约束 
    用于在泛型声明中约束可能用作类型参数的参数的类型。new 不是类所以也不继承自谁
      

  2.   

    和C++中的new
    一样
    只是 对于 编译器 自身来说
    自己定义的一个 编译逻辑上的关键字而已
      

  3.   

    我说的楼上是指三楼的zswang(伴水清清)(专家门诊清洁工) ,大家回复的太快了。
      

  4.   

    new 出处: -_-#new
    [nju:]
    adj.
    新的, 初见的, 更新的
    adv.
    新近new
    new
    AHD:[n›, ny›] 
    D.J.[nu8, nju8]
    K.K.[nu, nju]
    adj.(形容词)
    new.er, new.est
    Having been made or come into being only a short time ago; recent:
    新的:不久前刚制成或形成的;最近的:
    a new law.
    新法律
    Still fresh:
    仍新鲜的:
    a new coat of paint.
    一层新漆
    Never used or worn before now:
    未用过的,没穿过的:
    a new car; a new hat.
    新车;新帽子
    Just found, discovered, or learned:
    新发现的:刚发现的、新发明的或刚学的:
    new information.
    新信息
    Not previously experienced or encountered; novel or unfamiliar:
    新奇的:从未经历的或从未遇到的;新奇的或不熟悉的:
    ideas new to her; visiting new places.
    对她来说是新思想;参观不熟悉的地方
    Different from the former or the old:
    不同于以前的,与旧的不同的:
    the new morality.
    新道德
    Recently obtained or acquired:
    新获得的:最近得到的或获得的:
    new political power; new money.
    新政权;新财富
    Additional; further:
    附加的;另加的:
    new sources of energy.
    附加能源
    Recently arrived or established in a place, position, or relationship:
    初到某地的:才来的或在一个地方、位置才建的或新联系的:
    new neighbors; a new president.
    新邻;新执政的总统
    Changed for the better; rejuvenated:
    变好的;更新的:
    The nap has made a new person of me.
    小睡使我精神焕发
    Being the later or latest in a sequence:
    最近的:次序较晚或最新的:
    a new edition.
    新版
    Currently fashionable:
    目前流行的:
    a new dance.
    流行舞
    New In the most recent form, period, or development.
    New 新型的:处于新近的形式、时期或发展的
    Inexperienced or unaccustomed:
    无经验的或不熟悉的:
    new at the job; new to the trials of parenthood.
    新手;初为人父母
    adv.(副词)
    Freshly; recently. Often used in combination:
    新鲜地;新近地。常用于合成词:
    new-mown.
    新割的Middle English newe 
    中古英语 newe 
    from Old English nº¶owe} * see newo- 
    源自 古英语 nº¶owe} *参见 newo- new“ness
    n.(名词)new, fresh, novel, newfangled, original
    These adjectives describe what has existed for only a short time, has only lately come into use, or has only recently arrived at a state or position, as of prominence. 
    这些形容词刻划了短时间存在的,刚刚投入使用的或刚进入状态或位置的事物,如名声。
    New  is the most general: 
    New  是最一般的:
    a new movie; 
    新电影;
    new clothes; 
    新衣服;
    a new friend; 
    新朋友;
    a new popular hero. 
    刚成名的英雄。
    “It is time for a new generation of leadership, to cope with new problems and new opportunities. For there is a new world to be won” (John F. Kennedy). Something fresh  has or has retained qualities of newness  such as briskness, brightness, or purity: 
    “这是一个新一代领导人处理新问题、把握新机遇的时代。一个新世界将被建立” (约翰F.肯尼迪)。fresh 指一些具有或可保持新鲜品质的物质, 如活泼、聪明或纯洁:
    The police found fresh fingerprints on the light switch. 
    警察在灯开关上发现了新留的手印。
    Identifying the virus gave scientists fresh hope of discovering a vaccine. 
    鉴定病毒给予科学家发现疫苗的新希望。
    Novel  applies to what is both new and strikingly unusual: 
    Novel  适用于既是新的又显然不寻常的东西:
    “The Spaniards were astonished at these novel maneuvers [by musketeers on skates]  upon the ice”  (John Lothrop Motley). 
    “西班牙人被这些在冰上的[滑行步兵] 进行的大规模战略演习惊得目瞪口呆”  (约翰·劳斯路普·莫特利)。
    Newfangled  suggests that something is needlessly novel; the term is often derogatory: 
    Newfangled  表明有些东西无需新颖;常带有贬义:
    “the newfangled doctrine of utility” (John Galt). Something that is original  is novel and the first of its kind:  
    “新奇的实效学说” (约翰·高特)。Original 的事物是新颖的和种类中最早的: 
    “The science of pure mathematics, in its modern development, may claim to be the most original creation of the human spirit” (Alfred North Whitehead).
    “纯数学学科,在其现代发展阶段或许可被称之为人类精神的最初创造” (阿尔弗莱德·诺斯·怀特海德)new
    [nju:; (?@) nu:]
    adj.
    新的;新近的
    a new government
    新政府
    new fashions
    新式样
    She is learning a new language.
    她在学习一门新的语言。
    崭新的, 未用过的
    We sell new and used furniture.
    我们卖新旧家具。
    新发现的; 初为人知的;新近出现的
    a new star
    一颗新星
    the new nations of Africa
    非洲新兴起的国家
    更新的;新鲜的,新颖的
    a new milk
    新鲜牛奶
    a new day
    新的一天
    时鲜的,刚上市的
    small new potatoes
    刚上市的小土豆new to
    不熟悉的
    He was new to the town. He had never been there before.
    他对这个城镇不熟悉,他从前没去过那儿。new
    [nju:]
    adj.
    更进一层的
    新的, 陌生的
    新出现的; 新开发的; 新发现[明]的; 新就任的; 新制作的, 新近的; 新到的
    健康恢复了的; 精神恢复了的, 变新了的
    重新开始的
    不熟悉的; 不习惯的; 没经验的
    摩登的, 现代的, 新式的
    另加的, 附加的
    [美] a new era
    新时代
    a new bud
    新生出来的芽
    new blood
    新鲜血液
    N-China News Agency (=NCNA)
    新华通讯社 N-Learning 16世纪文艺复兴时输入英国的希腊文艺研究
    new candle
    【光】烛光
    new chum
    [澳](来自英伦三岛)新的移民
    the N-Deal (1933年实施的)
    新政 ②[口]新的领导, 新的管理new
    adv.
    (=newly) [主要与过去分词构成复合词]新, 新近地, 重新地
    n.
    [the new]新的东西, 新鲜事物newblown
    adj.
    (花)刚开的
    new-born
    adj.
    新生的, 再生的new
    n.
    新生儿
    new-build
    vt.
    重建
    new-built
    adj.
    新建的
    newcoined
    adj.
    (名词等)新造的
    newcomer
    n.
    新来的人
    newfangled
    [`njU:9fAN^ld]
    adj.
    新花样的, 新奇的; 爱好新奇的
    new-fashioned
    adj.
    新式的, 新流行的
    new-found
    adj.
    新发现的
    new-front
    vt.
    给...装上新门面
    new-furnish
    vt.
    为(房间等)重新配上家具
    new-laid
    [`njU:leId]
    adj.
    (蛋)才生的
    new-made
    [`njU:meId]
    adj.
    才做好的, 重新做的
    new-mint
    vt.
    新[重新]铸; 给词以新意义[解释]
    new-model
    [`njU:9mCdEl]
    vt.
    改组; 改建
    new-mown
    adj.
    新收割的
    new-rich
    n., adj.
    暴发户(的)
    new-type
    adj.
    新型的
    newness
    n.
    新, 新奇; 未熟不惯brand new
    崭新, 全新
    new from
    刚从..出来的
    new to
    对...(来说)不熟悉; 对...(来说)陌生cum new
    附新股
    ex new
    无新股息, 除去新股
    orthoformnew
    【药】新俄妥仿
    sold ex new
    除去新股出售new fresh novel
    意思都指“新的”。
    new指“刚刚产生的”, 如:
    a new plan
    一项新的计划。
    fresh指“新鲜的”, 如:
    fresh eggs
    鲜蛋。
    novel指“使人感到非同寻常或奇特的新”, 如:
    a novel idea
    新奇的想法。
    oldnew
    中古英语newe<古英语niwe<印欧语词干newos新new
    firsthandfreshmodernoriginalrecentunusedyoungold
      

  5.   

    楼主,首先对你的学习态度表示肯定,能够刨根问底,能够思考更深层的东西但毕竟现在是知识爆炸的时代,如果要了解所有知识的细节那就太困难了计算机编程语言也是人设计出来的,有些设计完全是作者的个人喜好或经验而已关键字是编译器识别语法所用,这些东西完全是程式解释,没有深入研究的必要如何你还是学生,当找工作的时候别人不会考你“new 的出处”而更愿意看你写出了多少个出色的程序问问题要表达清楚,也许是我的理解能力太差,不知道你问的是啥无论如何:回你的贴就是帮助你(怎么不是“顶”),废话总比看贴不回帖强哈
      

  6.   

    不知道 这个是Windows DNA里面的技术 
    太深了 我都还没有研究到了这么深了  呵呵
      

  7.   

    new并不是来自哪个类或是继承自谁,c#编译器规定“new”这个词能够解释成确定的机器语言,而不是其他。编译器的设计者使用了new而不是old去完成伴水清清所指的三个功能的机器代码。编译原理会替我讲明new到底使用了多少个0,1,组成了new.new只来自编译器。不来自其他。不明白请再问,明白的话,敬请楼主麻烦楼主求求楼主结贴
      

  8.   

    楼主,每一种程序设计语言都有一本叫做语言规范的东西。英文名称:Language Specification。上面记载了创建一个实例使用new而不是add、create或者malloc等等诸如此类无聊的事情。原谅我把它当成了常识……如果谁能解决楼主的问题,顺便问一下class、public、protected、private、delegate、event、struct、enum、switch、while、if、for、goto、case、default、return、void、do、extern、lock、checked、unchecked的出处。
      

  9.   

    去看看IL 就知道new是被编译成什么了,如果还是好奇,就去学学JIT怎么把IL编译成机器语言的,然后学习一下机器语言...