c# - Apply filter to business object -


can me how filter data business object?

here sample code:

var allemps = empservice.getallemployees(); ienumerable<emp> emps; if (allemps.isfreeoferrors) {        emps = allemps.value.contains("abc"); } 

here allemps.value returning employee data. want filter emps name starts "abc". how do this?

here linq object examples

var allemps = empservice.getallemployees(); ienumerable<emp> emps; if (allemps.isfreeoferrors) {    emps = allemp.where(w=>w.value.startwith("abc")); } 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -