Challenge: C# Foreach - Before, After, Even, Odd, Last, First -


Since C # is not the first, the latter, the last, the first, as part of its foreach.

  1. Allow: first, first, even, weird, last, after events
  2. This is a challenge # 1

do not execute / execute the primary function (the function executed on all objects of the archive) during the events listed in If you can exceed the above criteria, please! >

I will post my answer below, but it is not elegant nor is it possible, so I want to see what the community can cover.

Hard coded for the loops sometimes gets bothered = (

LINQ ...

  • After: .poipoyel (meaning) (left as obscure as your meaning)
  • First: .) (Exclamation of your meaning is unclear)
  • Last: . ()
  • First: . First ()
  • Strange: . Where ((x, i) => i% 2 == 1)
  • even: . Where ((x, i) => I% 2 == 0)

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -