diff options
Diffstat (limited to 'mcs/class/referencesource/System.Workflow.ComponentModel/Shared/CompModHelpers.cs')
-rw-r--r-- | mcs/class/referencesource/System.Workflow.ComponentModel/Shared/CompModHelpers.cs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mcs/class/referencesource/System.Workflow.ComponentModel/Shared/CompModHelpers.cs b/mcs/class/referencesource/System.Workflow.ComponentModel/Shared/CompModHelpers.cs index 1e5a102e278..2183def5736 100644 --- a/mcs/class/referencesource/System.Workflow.ComponentModel/Shared/CompModHelpers.cs +++ b/mcs/class/referencesource/System.Workflow.ComponentModel/Shared/CompModHelpers.cs @@ -9,7 +9,7 @@ /********************************************************************* * NOTE: A copy of this file exists at: WF\Activities\Common - * The two files must be kept in sync. Any change made here must also + * The two files must be kept in [....]. Any change made here must also * be made to WF\Activities\Common\CompModHelpers.cs *********************************************************************/ namespace System.Workflow.ComponentModel.Design @@ -1167,10 +1167,10 @@ namespace System.Workflow.ComponentModel.Design Guid parentContextGuid = GetRuntimeContextGuid(parentContextActivity); while (activity == null && declaringContextGuid != currentContextGuid) { - // WinOE - - - + // WinOE Bug 17931: if the context id is different, it means that this activity is running in a child context (such as + // the children of a replicator or a while). we need to resolve the activity within the child context + // first. If we go up to the declaring activity, we'd be finding children of the template instead of + // the actual running instance. while (parentContextActivity != null && parentContextGuid == currentContextGuid) { currentContextActivity = parentContextActivity; @@ -1393,10 +1393,10 @@ namespace System.Workflow.ComponentModel.Design } #endregion - // This class has been added as a fix for - - - + // This class has been added as a fix for bug 18214 in order to + // create an independent code-path for debugger's use of ParseActivity functionality. + // The GetActivity method of this class uses QualifiedName instead of Name property + // for finding activities. internal static class DebuggerHelpers { [SuppressMessage("Microsoft.Globalization", "CA1307:SpecifyStringComparison", Justification = "IndexOf(\".\") not a security issue.")] |