English 中文(简体)
如何在使用“卡斯”时只指明一个名称空间。 温莎?
原标题:How to specify the namespace only once when using Castle.Windsor?

在卡斯。 页: 1

<component 
id="form.component"
type="GettingStartedPart1.Form1, GettingStartedPart1" />

为什么要重复使用名称空间<条码>。 我们可以只字写:

<component 
id="form.component"
type="GettingStartedPart1.Form1" />

?

最佳回答

它不是名称空间

页: 1

"GettingStartedPart1.Form1, GettingStartedPart1"

它:

"NamespaceName.TypeName, AssemblyName"

因此,你确实可以忽略这一点。

您可以:

"System.String, mscorlib"

这并不是一种温莎形式的BTW——它如此称之为完全合格的类型名称。

问题回答

暂无回答




相关问题
castle IOC - resolving circular references

quick question for my MVP implementation: currently I have the code below, in which both the presenter and view are resolved via the container. Then the presenter calls View.Init to pass himself to ...

Castle Windsor auto registration

I currently have the following registration set up private static void AddFrameworkComponentsTo(IWindsorContainer container) { container.AddComponent<ITypeConverter, TypeConversionFacade>();...

Authorization and Windsor

I m trying to implement my custom authorize attribute like: public class MyCustomAuth : AuthorizeAttribute { private readonly IUserService _userService; public MyCustomAuth(IUserService ...

How can I override a component registered in Castle Windsor?

I m just starting with Windsor, so please be gentle :) I have a scenario where I want to be able to override/replace components placed inside a windsor container. Read on ... In my prod code, I want ...

热门标签