src/Misc/EFTools/XmlCore/Base/Context/ContextItemCollection.cs
/// <summary>
///     Adds an event callback that will be invoked with a context item of the given item type changes.
/// </summary>
/// <typeparam name="ContextItemType">The type of item you wish to subscribe to.</typeparam>
/// <param name="callback">A callback that will be invoked when contextItemType changes.</param>
/// <exception cref="ArgumentNullException">if callback is null.</exception>
Adds an event callback that will be invoked with a context item of the given item type changes.
Adds an event callback that will be invoked with a context item of the given item type changes .
internal void Subscribe<TContextItemType>(SubscribeContextCallback<TContextItemType> callback) where TContextItemType : ContextItem
        {
            if (callback == null)
            {
                throw new ArgumentNullException("callback");
            }
            var proxy = new SubscribeProxy<TContextItemType>(callback);
            Subscribe(typeof(TContextItemType), proxy.Callback);
        }
internal void Subscribe < TContextItemType > ( SubscribeContextCallback < TContextItemType > callback ) where TContextItemType : ContextItem { if ( callback == null ) { throw new ArgumentNullException ( " " ) ; } var proxy = new SubscribeProxy < TContextItemType > ( callback ) ; Subscribe ( typeof ( TContextItemType ) , proxy . Callback ) ; }
Adds an event callback that will be invoked with a context item of the given item type changes.
Adds an event callback that will be invoked with a context item of the given item type changes .
if callback is null.
if callback is null .
callback
SubscribeContextCallback<TContextItemType>
A callback that will be invoked when contextItemType changes.
A callback that will be invoked when contextItemType changes .
typeparam
The type of item you wish to subscribe to.
The type of item you wish to subscribe to .