The short answer is that you cannot make it a standing function. In your example, it is idactually stored in closure .
: , , id, , -. - , , . , "" , . . .
, :
public class IdSearcher
{
private int m_Id;
public IdSearcher( int id ) { m_Id = id; }
public bool TestForId( in otherID ) { return m_Id == otherID; }
}
public void GetRecord(int id)
{
var srchr = new IdSearcher( id );
_myentity.Schedules.Where( srchr.TestForId );
}