namespace Implab.ServiceHost.Unity { public class DefaultParameterElement : InjectionParameterElement { public string Value { get { return null; } } public override void Visit(InjectionParameterBuilder builder) { var type = builder.ResolveInjectedValueType(TypeName); builder.SetValue(type, Safe.CreateDefaultValue(type)); } } }