2 // Copyright (c) Microsoft Corporation. All rights reserved.
5 namespace System.Activities.Presentation.Debug
7 using System.Activities;
8 using System.Activities.Presentation.View;
12 /// AllowBreakpointAttribute is an attribute to describe whether a type allow a breakpoint to be set on it.
14 [Fx.Tag.XamlVisible(false)]
15 [AttributeUsage(AttributeTargets.Class)]
16 internal sealed class AllowBreakpointAttribute : Attribute
18 internal static bool IsBreakpointAllowed(Type breakpointCandidateType)
20 return typeof(Activity).IsAssignableFrom(breakpointCandidateType) || WorkflowViewService.GetAttribute<AllowBreakpointAttribute>(breakpointCandidateType) != null;