Example #1
0
        public void Visit(IInvokedMethod invokedMethod)
        {
            if (invokedMethod.MethodName == null)
            {
                throw new ContextConfigurationException("InvokedMethod without definition of 'MethodName' found");
            }
            IFieldDescriptor p = invokedMethod.ParentFieldDescriptor;
            FieldInfo        f = GetFieldInfo(p, p.ParentClassConfiguration);
            Type             t = f.FieldType;
            MethodInfo       m = t.GetMethod(invokedMethod.MethodName,
                                             BindingFlags.NonPublic |
                                             BindingFlags.Public |
                                             BindingFlags.Instance);

            if (m == null)
            {
                throw new ContextConfigurationException("Fieldtype of field '" + p.FieldName + "' in class '" + p.ParentClassConfiguration.ClassName + "' does not define method '" + invokedMethod.MethodName + "'");
            }
        }
        public void Visit(IInvokedMethod invokedMethod)
        {
            if (invokedMethod.MethodName == null)
            {
                throw new ContextConfigurationException("InvokedMethod without definition of 'MethodName' found");
            }
            IFieldDescriptor p = invokedMethod.ParentFieldDescriptor;
            FieldInfo f = GetFieldInfo(p, p.ParentClassConfiguration);
            Type t = f.FieldType;
            MethodInfo m = t.GetMethod(invokedMethod.MethodName,
                BindingFlags.NonPublic |
                BindingFlags.Public |
                BindingFlags.Instance);

            if (m == null)
            {
                throw new ContextConfigurationException("Fieldtype of field '"+ p.FieldName + "' in class '"+p.ParentClassConfiguration.ClassName+"' does not define method '" + invokedMethod.MethodName + "'");
            }
        }
Example #3
0
 public void Visit(IInvokedMethod invokedMethod)
 {
 }
 public void Visit(IInvokedMethod invokedMethod)
 {
 }