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