Esempio n. 1
0
 protected InvocationEmitter(CallInfo callInfo)
     : base(callInfo)
 {
 }
Esempio n. 2
0
        private static MethodInfo GetPropertyMethod(string infoPrefix, string propertyMethod, CallInfo callInfo)
        {
            var method = callInfo.TargetType.Method(infoPrefix + callInfo.Name, callInfo.BindingFlags);

            if (method == null)
            {
                const string fmt = "No {0} for property {1} with flags {2} on type {3}.";
                throw new MissingFieldException(string.Format(fmt, propertyMethod, callInfo.Name, callInfo.BindingFlags, callInfo.TargetType));
            }
            callInfo.MemberInfo = method;
            return(method);
        }