コード例 #1
0
		AbstractVariable[] FieldsToNodes(TargetFieldInfo[] fields)
		{
			ArrayList nodes = new ArrayList();
			
			foreach(TargetFieldInfo field in fields) {
				AbstractVariable node;
				try {
					TargetObject fobj = obj.GetField(stackFrame.Thread, field);
					node = VariableFactory.Create(field.Name, fobj, stackFrame);
				} catch {
					node = new ErrorVariable(field.Name, "Can not get field value");
				}
				nodes.Add(node);
			}
			
			return (AbstractVariable[])nodes.ToArray(typeof(AbstractVariable));
		}
コード例 #2
0
        AbstractVariable[] FieldsToNodes(TargetFieldInfo[] fields)
        {
            ArrayList nodes = new ArrayList();

            foreach (TargetFieldInfo field in fields)
            {
                AbstractVariable node;
                try {
                    TargetObject fobj = obj.GetField(stackFrame.Thread, field);
                    node = VariableFactory.Create(field.Name, fobj, stackFrame);
                } catch {
                    node = new ErrorVariable(field.Name, "Can not get field value");
                }
                nodes.Add(node);
            }

            return((AbstractVariable[])nodes.ToArray(typeof(AbstractVariable)));
        }