public void Inject(object target) { var fieldInfos = _reflector.GetFieldInfos(target.GetType()); var length = fieldInfos.Length; for (var i = 0; i < length; i++) { var fieldInfo = fieldInfos[i]; var value = _resolverMap.Get(fieldInfo.FieldType); fieldInfo.SetValue(target, value); } }