Esempio n. 1
0
        private System.Activities.Debugger.XamlNode CreateXamlEndRecordNode()
        {
            XamlStartRecordNode node2 = this.nodes.Pop() as XamlStartRecordNode;

            return(new XamlEndRecordNode {
                LineNumber = this.xamlLineInfo.LineNumber, LinePosition = this.xamlLineInfo.LinePosition, TypeName = (node2 != null) ? node2.TypeName : null, RecordType = (node2 != null) ? node2.RecordType : null
            });
        }
        private static bool DebuggableNode(System.Activities.Debugger.XamlNode node)
        {
            System.Type c = null;
            switch (node.NodeType)
            {
            case XamlNodeType.StartObject:
            {
                XamlStartRecordNode node2 = node as XamlStartRecordNode;
                if ((node2 != null) && (node2.RecordType != null))
                {
                    c = node2.RecordType.UnderlyingType;
                }
                break;
            }

            case XamlNodeType.EndObject:
            {
                XamlEndRecordNode node3 = node as XamlEndRecordNode;
                if ((node3 != null) && (node3.RecordType != null))
                {
                    c = node3.RecordType.UnderlyingType;
                }
                break;
            }

            case XamlNodeType.StartMember:
            {
                XamlStartMemberNode node4 = node as XamlStartMemberNode;
                if ((node4 != null) && (node4.RecordType != null))
                {
                    c = node4.RecordType.UnderlyingType;
                }
                break;
            }

            case XamlNodeType.EndMember:
            {
                XamlEndMemberNode node5 = node as XamlEndMemberNode;
                if ((node5 != null) && (node5.RecordType != null))
                {
                    c = node5.RecordType.UnderlyingType;
                }
                break;
            }
            }
            bool flag = false;

            if (((c != null) && typeof(Activity).IsAssignableFrom(c)) && (!typeof(IExpressionContainer).IsAssignableFrom(c) && !typeof(IValueSerializableExpression).IsAssignableFrom(c)))
            {
                flag = true;
            }
            return(flag);
        }
Esempio n. 3
0
        private System.Activities.Debugger.XamlNode CreateXamlStartRecordNode()
        {
            XamlStartRecordNode item = new XamlStartRecordNode {
                LineNumber   = this.xamlLineInfo.LineNumber,
                LinePosition = this.xamlLineInfo.LinePosition,
                TypeName     = XName.Get(this.reader.Type.Name, this.reader.Type.PreferredXamlNamespace),
                RecordType   = this.reader.Type
            };

            this.nodes.Push(item);
            return(item);
        }
 private System.Activities.Debugger.XamlNode CreateXamlStartRecordNode()
 {
     XamlStartRecordNode item = new XamlStartRecordNode {
         LineNumber = this.xamlLineInfo.LineNumber,
         LinePosition = this.xamlLineInfo.LinePosition,
         TypeName = XName.Get(this.reader.Type.Name, this.reader.Type.PreferredXamlNamespace),
         RecordType = this.reader.Type
     };
     this.nodes.Push(item);
     return item;
 }