Geeks With Blogs
Deeksha Sharma June 2014 Entries
Reading data from Excel SpreadSheet
FileStream stream = File.Open(filePath, FileMode.Open, FileAccess.Read);IExcelData... excelReader = ExcelReaderFactory.CreateOp... = true; int totalrows = excelReader.AsDataSet().Tab... foreach (DataRow dataRow in excelReader.AsDataSet().Tab... { if (!String.IsNullOrEmpty(data... { recordRow = dataRow; } } Order order = new Order(); try { order.OrderNumber = recordRow["/CLOSINGLOGS/FIL... ......

Posted On Friday, June 20, 2014 5:20 AM

facts of Anonymous Type
Quick facts about Anonymous typeAnonymous types are reference types derived form system.objects.Properties of the Anonymous type are read only.If two Anonymous types have the same properties and same order, then the compiler treats it as the same type, but if both are in one assembly.Anonymous type has method scope. If you want to return Anonymous type from the method, then you have to convert it in object type. But is not good practice ......

Posted On Thursday, June 5, 2014 2:46 AM

Copyright © Deeksha Sharma | Powered by: