How an internal class in Server.dll can be use in Client.dll???
When i read the System.Workflow.Runtime.dll's source, I found the
following code is difficult to understand.
public void SubscribeForCorrelationTokenInitializedEvent(Activ ity
activity, IActivityEventListener<CorrelationTokenEventArgs>
dataChangeListener)
{
if (null == activity)
{
throw new ArgumentNullException("activity");
}
if (null ==dataChangeListener)
{
throw new ArgumentNullException("dataChangeListener");
}
ActivityExecutorDelegateInfo<CorrelationTokenEvent Args>
item = new
ActivityExecutorDelegateInfo<CorrelationTokenEvent Args>(dataChangeListener,
ContextActivityUtils.ContextActivity(activity), true);
IList<ActivityExecutorDelegateInfo<CorrelationToke nEventArgs>list =
base.GetValue(SubscriptionsProperty) as
IList<ActivityExecutorDelegateInfo<CorrelationToke nEventArgs>>;
if (list == null)
{
list = new
List<ActivityExecutorDelegateInfo<CorrelationToken EventArgs>>();
base.SetValue(SubscriptionsProperty, list);
}
list.Add(item);
}
that is a method of class CorrelationToken in
System.Workflow.Runtime.dll, But ActivityExecutorDelegateInfo<Tis
an interal class in System.Workflow.ConponentModel.dll!!!
how and why?