/// <summary> /// add method injection to list /// </summary> /// <param name="methodInjection"></param> public void MethodInjection(MethodInjectionInfo methodInjection) { if (MethodInjectionList != ImmutableLinkedList <MethodInjectionInfo> .Empty && MethodInjectionList.Any(m => Equals(m.Method, methodInjection.Method))) { return; } MethodInjectionList = MethodInjectionList.Add(methodInjection); }
/// <summary> /// add method injection to list /// </summary> /// <param name="methodInjection"></param> public void MethodInjection(MethodInjectionInfo methodInjection) { MethodInjectionList = MethodInjectionList.Add(methodInjection); }