コード例 #1
0
ファイル: StackFrame.cs プロジェクト: kleinux/SharpDevelop
        /// <summary> Gets argument with a given name </summary>
        /// <returns> Null if not found </returns>
        public Value GetArgumentValue(string name)
        {
            DebugParameterInfo par = this.MethodInfo.GetParameter(name);

            if (par == null)
            {
                return(null);
            }
            return(GetArgumentValue(par.Position));
        }
コード例 #2
0
 public static Expression GetExpression(this DebugParameterInfo par)
 {
     return(new IdentifierExpression(par.Name).SetStaticType((DebugType)par.ParameterType));
 }