public FileViewModel GetUploadFile(string name, string ext, string FileFolder) { V_0 = null; stackVariable2 = new string[2]; stackVariable2[0] = "Content/Uploads"; stackVariable2[1] = FileFolder; V_1 = CommonHelper.GetFullPath(stackVariable2); V_2 = new FileInfo(string.Format("{0}/{1}.{2}", V_1, name, ext)); try { V_3 = V_2.OpenText(); try { stackVariable16 = new FileViewModel(); stackVariable16.set_FileFolder(FileFolder); stackVariable16.set_Filename(V_2.get_Name().Substring(0, V_2.get_Name().LastIndexOf('.'))); stackVariable16.set_Extension(V_2.get_Extension().Remove(0, 1)); stackVariable16.set_Content(V_3.ReadToEnd()); V_0 = stackVariable16; } finally { if (V_3 != null) { ((IDisposable)V_3).Dispose(); } } } catch { dummyVar0 = exception_0; } stackVariable33 = V_0; if (stackVariable33 == null) { dummyVar1 = stackVariable33; stackVariable33 = new FileViewModel(); stackVariable33.set_FileFolder(FileFolder); } return(stackVariable33); }