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. The Lounge
  3. You know what would be great?

You know what would be great?

Scheduled Pinned Locked Moved The Lounge
csharpquestion
9 Posts 6 Posters 2 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
    PIEBALDconsult
    wrote on last edited by
    #1

    If I could (in C#) derive a new Attribute from both System.ComponentModel.DescriptionAttribute and System.ComponentModel.DefaultValueAttribute . Yeah, that'd be great. :sigh:

    T S C N 4 Replies Last reply
    0
    • P PIEBALDconsult

      If I could (in C#) derive a new Attribute from both System.ComponentModel.DescriptionAttribute and System.ComponentModel.DefaultValueAttribute . Yeah, that'd be great. :sigh:

      T Offline
      T Offline
      Tim Carmichael
      wrote on last edited by
      #2

      Work on Saturday, and you might as well plan to work on Sunday. Yeah... that would be great....

      P 1 Reply Last reply
      0
      • P PIEBALDconsult

        If I could (in C#) derive a new Attribute from both System.ComponentModel.DescriptionAttribute and System.ComponentModel.DefaultValueAttribute . Yeah, that'd be great. :sigh:

        S Offline
        S Offline
        Slacker007
        wrote on last edited by
        #3

        If I could (in C#) derive a new Attribute from both System.ComponentModel.BillionaireAttribute and System.ComponentModel.DefaultMoneyAttribute . Yeah, that'd be great. :sigh:

        Sander RosselS 1 Reply Last reply
        0
        • P PIEBALDconsult

          If I could (in C#) derive a new Attribute from both System.ComponentModel.DescriptionAttribute and System.ComponentModel.DefaultValueAttribute . Yeah, that'd be great. :sigh:

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #4

          It would be long, apparently.

          1 Reply Last reply
          0
          • T Tim Carmichael

            Work on Saturday, and you might as well plan to work on Sunday. Yeah... that would be great....

            P Offline
            P Offline
            PIEBALDconsult
            wrote on last edited by
            #5

            This Sunday? No, I'll be dealing blackjack at a charity fundraiser event.

            T 1 Reply Last reply
            0
            • S Slacker007

              If I could (in C#) derive a new Attribute from both System.ComponentModel.BillionaireAttribute and System.ComponentModel.DefaultMoneyAttribute . Yeah, that'd be great. :sigh:

              Sander RosselS Offline
              Sander RosselS Offline
              Sander Rossel
              wrote on last edited by
              #6

              You mean the System.ComponentModel.BillGatesAttribute? :confused:

              Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly

              1 Reply Last reply
              0
              • P PIEBALDconsult

                If I could (in C#) derive a new Attribute from both System.ComponentModel.DescriptionAttribute and System.ComponentModel.DefaultValueAttribute . Yeah, that'd be great. :sigh:

                N Offline
                N Offline
                Nicholas Marty
                wrote on last edited by
                #7

                What would the advantage of using ...

                [CustomAttribute(Description = "A number", DefaultValue = 1000)]
                public int YourProperty { get; set; }

                ... over ...

                [Description("A number"), DefaultValue(1000)]
                public int YourProperty { get; set; }

                ..or...

                [Description("A number")]
                [DefaultValue(1000)]
                public int YourProperty { get; set; }

                ...be?

                1 Reply Last reply
                0
                • P PIEBALDconsult

                  This Sunday? No, I'll be dealing blackjack at a charity fundraiser event.

                  T Offline
                  T Offline
                  Tim Carmichael
                  wrote on last edited by
                  #8

                  Watch 'Office Space'.. the quote may not be exact, but close enough.

                  P 1 Reply Last reply
                  0
                  • T Tim Carmichael

                    Watch 'Office Space'.. the quote may not be exact, but close enough.

                    P Offline
                    P Offline
                    PIEBALDconsult
                    wrote on last edited by
                    #9

                    Have. I know.

                    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