Mono.Debugger.Languages.TargetFunctionType.GetSignature C# (CSharp) Method

GetSignature() public abstract method

public abstract GetSignature ( System.Thread target ) : TargetMethodSignature
target System.Thread
return TargetMethodSignature
        public abstract TargetMethodSignature GetSignature(Thread target);

Usage Example

Example #1
0
        public static bool IsApplicable(ScriptingContext context, TargetFunctionType method,
						 TargetType[] types, out string error)
        {
            TargetMethodSignature sig = method.GetSignature (context.CurrentThread);

            for (int i = 0; i < types.Length; i++) {
                TargetType param_type = sig.ParameterTypes [i];

                if (param_type == types [i])
                    continue;

                if (Convert.ImplicitConversionExists (context, types [i], param_type))
                    continue;

                error = String.Format (
                    "Argument {0}: Cannot implicitly convert `{1}' to `{2}'",
                    i, types [i].Name, param_type.Name);
                return false;
            }

            error = null;
            return true;
        }
All Usage Examples Of Mono.Debugger.Languages.TargetFunctionType::GetSignature