SharpDevelop的Codon名称在Xml文件中的定义

<AddIn name        = "SharpDevelop Core"
       author      = "Mike Krueger"
       copyright   = "GPL"
       url         = "http://www.icsharpcode.net"
       description = "NCvs core module"
       version     = "1.0.0">

 <Runtime>
  <Import assembly="SharpDevelop.Base.dll"/>
  <Import assembly="CSharpParser.dll"/>
 </Runtime>

 <Extension path = "/SharpDevelop/Workbench/Ambiences">
  <Class id    = "Net"
         class = "ICSharpCode.SharpDevelop.Services.NetAmbience"/>
  <Class id    = "CSharp"
         class = "ICSharpCode.SharpDevelop.Services.CSharpAmbience"/>
  <Class id    = "VB.NET"
         class = "ICSharpCode.SharpDevelop.Services.VBAmbience"/>
 </Extension>
 

其中Extension下的XmlNode节点名称Class就是要与Assembly中的Codon对应的设置节点!!

见英文版的电子书的关于这个问题的说明:

The AbstractCodon class provides the basic functionality, which every codon must have.
We already know that codons are XML-defined objects. The codon responsible for a specific XML node is
determined by the node name. This node name and the codon name, which is given by the
CodonNameAttribute, must be equal. The core locates the codon that has a CodonNameAttribute,
which matches the XML node name. After that a new CodonBuilder is created for these types, which is
handed over to the CodonFactory.

 

注意,这里明确已经说明了Codon的名称是Xml文件中定义的XmlNode名称!!以前不知道怎么理解的!唉~郁闷! 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值