##// END OF EJS Templates
Working on Implab.Diagnostics
Working on Implab.Diagnostics

File last commit:

r281:e0916ddc9950 v3
r286:67ebcfd7d1c8 v3
Show More
DefaultParameterElement.cs
12 lines | 406 B | text/x-csharp | CSharpLexer
namespace Implab.ServiceHost.Unity
{
public class DefaultParameterElement : AbstractInjectionParameter {
public string Value {
get { return null; }
}
public override void Visit(InjectionParameterBuilder builder) {
var type = builder.ResolveInjectedValueType(TypeName);
builder.SetValue(type, Safe.CreateDefaultValue(type));
}
}
}