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. Code generator for creating properties for ALL public fields in a class?

Code generator for creating properties for ALL public fields in a class?

Scheduled Pinned Locked Moved C#
helpquestioncode-review
2 Posts 1 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.
  • P Offline
    P Offline
    Patrick Etc
    wrote on last edited by
    #1

    Yeah, VS2005 supplies the ability to factor public fields one at a time, but is there a way to select ALL the fields you want to refactor and create properties for them all at once? I've got a few classes I need to do this for, each with a not-insignificant number of properties, and I'm not looking forward to the 1-2 hours of mindless tasks. Help is appreciated!


    It has become appallingly obvious that our technology has exceeded our humanity. - Albert Einstein

    P 1 Reply Last reply
    0
    • P Patrick Etc

      Yeah, VS2005 supplies the ability to factor public fields one at a time, but is there a way to select ALL the fields you want to refactor and create properties for them all at once? I've got a few classes I need to do this for, each with a not-insignificant number of properties, and I'm not looking forward to the 1-2 hours of mindless tasks. Help is appreciated!


      It has become appallingly obvious that our technology has exceeded our humanity. - Albert Einstein

      P Offline
      P Offline
      Patrick Etc
      wrote on last edited by
      #2

      Someone.. voted me.. a 2. Ooo... k...


      It has become appallingly obvious that our technology has exceeded our humanity. - Albert Einstein

      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