"Около 50 со код строки "" код, это же в двух разных, если еще условие, чтобы управлять
if(xyz==1) { if(searchFilter.FormId == 0 || SubTab.AppType == searchFilter.FormId) { Some 50 Line co code } } else (searchFilter.FormId == 0 || SubTab.AppType == searchFilter.FormId || (SubTab.AppType == (int)_partner.Form.Homeless) && searchFilter.FormId != null) { Some 50 Line co code } Note : both "Some 50 Line co code "" lines of code are same , so can I do this in another way to not repeat same code, what should have to do for the same,
Что я уже пробовал:
<pre>if(xyz==1) { if(searchFilter.FormId == 0 || SubTab.AppType == searchFilter.FormId) { Some 50 Line co code } } else (searchFilter.FormId == 0 || SubTab.AppType == searchFilter.FormId || (SubTab.AppType == (int)_partner.Form.Homeless) && searchFilter.FormId != null) { Some 50 Line co code } Note : both "Some 50 Line co code "" lines of code are same , so can I do this in another way to not repeat same code, what should have to do for the same,