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
U

User 9249657

@User 9249657
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Is this an acceptable practice?
    U User 9249657

    I would prefer to write the attribute for each member, if you want to save lines of code you could write them inline.

    <System.Runtime.Serialization.DataMember> Private mLastUpdated As DateTime
    <System.Runtime.Serialization.DataMember> Private mLastUpdatedBy As String
    <System.Runtime.Serialization.DataMember> Private mClearanceRequired As Int64
    <System.Runtime.Serialization.DataMember> Private mClearanceIsRequired As Boolean

    And since you're saving lines of code, why could use auto-implemented properties por LastUpdated, LastUpdatedBy and ClearanceRequired.

    The Lounge json question
  • Login

  • Don't have an account? Register

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