Author: mycwcgr | Posted on: 11/3/2008 11:50:53 PM | Views : 307

I hope to use the following code to return myresult, but I get error, how can I do ? Must I have to define a explicit object?

 

        public static IEnumerable<object> GetResult()
        {
            string logFileName = HttpContext.Current.Server.MapPath(@"~/Log/ScheduleRun.xml");
            XElement xe = XElement.Load(logFileName);
            var myresult = from ee in xe.Elements("Record")
                         select new
                     &n ...

Go to the complete details ...