public static string Visualize(FlowMemberPosition position) { switch (position) { case FlowMemberPosition.EnterMethod: return("◆"); // →◆■▶◇▣▤▥▦▧▨ case FlowMemberPosition.ExitMethod: return("◯"); // ↳○◌◍◎●◯◬◭◮△▲▼▽◁◀◇◊○ case FlowMemberPosition.ThrowException: return("☢"); case FlowMemberPosition.CatchException: return("☂"); case FlowMemberPosition.RethrowException: return("☣"); case FlowMemberPosition.RaiseEvent: return("↯"); case FlowMemberPosition.StartThread: return("⇞"); // case FlowMemberPosition.Dispatcher : return "↥"; // case FlowMemberPosition.BeginAsync : retunn "↟"; case FlowMemberPosition.Output: return("⌘"); //❒ case FlowMemberPosition.None: return(" "); default: return("?"); } }
internal ExpressionResult(StackTrace stackTrace, FlowMemberPosition flowType) { this.Parameters = new List <LogParameter>(); this.StackTrace = stackTrace; this.StackFrame = stackTrace.GetFrame(0); this.Type = Flow.GetType(this); this.MethodType = GetFlowMemberType(this); this.Position = flowType; this.MethodDescriptor = GetMethodName(this); }