Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. enumerator problem

enumerator problem

Scheduled Pinned Locked Moved C#
help
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    biaali
    wrote on last edited by
    #1

    is there any way i can move enumerator back one position bia

    G D 2 Replies Last reply
    0
    • B biaali

      is there any way i can move enumerator back one position bia

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      No. You can only more forward one step or back to the beginning.

      --- Year happy = new Year(2007);

      1 Reply Last reply
      0
      • B biaali

        is there any way i can move enumerator back one position bia

        D Offline
        D Offline
        DavidNohejl
        wrote on last edited by
        #3

        Just curious, why would you need that?


        "Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus

        B 1 Reply Last reply
        0
        • D DavidNohejl

          Just curious, why would you need that?


          "Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus

          B Offline
          B Offline
          biaali
          wrote on last edited by
          #4

          actually im makin an urdu editor and if any arror occurs i ned to move bak to previous word nd i hasd to code a loooong loong process for this thas y thanks ny ways

          A 1 Reply Last reply
          0
          • B biaali

            actually im makin an urdu editor and if any arror occurs i ned to move bak to previous word nd i hasd to code a loooong loong process for this thas y thanks ny ways

            A Offline
            A Offline
            Adam Crawford
            wrote on last edited by
            #5

            Why not simply maintain a moving cache of the last N entries you iterated through? e.g foreach (string x in y) { /* operations here */ string previousx = x; }

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups