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)); } } }