private static MethodInfo GetMethodInfo(IEntity entity) { return (MethodInfo)((ExternalMethod) entity).MethodInfo; }