Author Topic: Slice enumerable/collection in C#  (Read 2399 times)

0 Members and 1 Guest are viewing this topic.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Slice enumerable/collection in C#
« on: January 31, 2014, 07:32:09 PM »
Came across this :

http://extensionmethod.net/csharp/ienumerable-t/slice-t-int-start-int-end

looks like a handy reference site.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

bargool

  • Guest
Re: Slice enumerable/collection in C#
« Reply #1 on: February 01, 2014, 12:12:28 AM »
Came across this :

http://extensionmethod.net/csharp/ienumerable-t/slice-t-int-start-int-end

looks like a handy reference site.
Thank you for sharing, really handy, Kerry

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Slice enumerable/collection in C#
« Reply #2 on: February 01, 2014, 01:10:25 AM »
You're most welcome sir.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

GumbyCAD

  • Newt
  • Posts: 84
Re: Slice enumerable/collection in C#
« Reply #3 on: February 01, 2014, 01:14:05 AM »
Very Nice indeed

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Slice enumerable/collection in C#
« Reply #4 on: February 01, 2014, 01:21:05 AM »
My pleasure Stephan. I assume you noticed here are  also VB.net snippets :)
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

GumbyCAD

  • Newt
  • Posts: 84
Re: Slice enumerable/collection in C#
« Reply #5 on: February 01, 2014, 01:29:30 AM »
I did  :-D , Im not fussy when i come to help on this stuff, I can read most C# too. And If it gets too hard there always plenty of converters out there.

http://converter.telerik.com/
or
http://www.developerfusion.com/tools/convert/csharp-to-vb/

These are my to fav's