private ProxyAttribute GetProxyMethodAttribute(MethodInfo methodInfo) { var attribute = (ProxyAttribute)methodInfo .GetCustomAttributes(typeof(ProxyAttribute), true) .FirstOrDefault(); if (attribute == null) { var temp = methodInfo.GetCustomAttributes(typeof(NoProxyAttribute), true).FirstOrDefault(); if (temp != null) { attribute = new ProxyAttribute { Operation = OperationType.Disallowed } } ; } if (attribute == null) { attribute = DeriveAttributeFromMethodInfo(methodInfo); } return(attribute); }
public ProxyMethodInfo(MethodInfo methodInfo, ProxyAttribute proxyMethodAttribute) { MethodInfo = methodInfo; ProxyAttribute = proxyMethodAttribute; }