System.MulticastDelegate.Add C# (CSharp) Method

Add() private method

private Add ( Delegate value ) : Delegate
value Delegate
return Delegate
        public Delegate Add(Delegate value)
        {
            var constructor = GetType().GetConstructors()[0];
            var toAdd = new[] { value };
            var newInvocationList = only == null && all == null ? toAdd : only == null ? all.Concat(toAdd).ToArray() : new[] { only }.Concat(toAdd).ToArray();
            return new MulticastDelegate(Target, newInvocationList);
//            return constructor.Invoke(new[] { Target }.Concat(newInvocationList).ToArray()).As<Delegate>();            
        }