locked
[Field(fieldname)] decoration property? RRS feed

  • Question

  • Hi  all,

    Which namespace contains the [Field] decoration for properties?

    Thanks,

    Ivan

    Tuesday, June 5, 2012 8:52 AM

Answers

  • I just added this code and it works:

        public sealed class FieldAttribute: Attribute
        {
            public string Name { get; private set; }
    
            public FieldAttribute(string name)
            {
                this.Name = name;
            }
        }

    • Marked as answer by Cryo75 Tuesday, June 5, 2012 9:37 AM
    Tuesday, June 5, 2012 9:37 AM

All replies

  • I just added this code and it works:

        public sealed class FieldAttribute: Attribute
        {
            public string Name { get; private set; }
    
            public FieldAttribute(string name)
            {
                this.Name = name;
            }
        }

    • Marked as answer by Cryo75 Tuesday, June 5, 2012 9:37 AM
    Tuesday, June 5, 2012 9:37 AM
  • I'm glad to hear that the problem is solved.

    Have a nice day!


    Mike Zhang[MSFT]
    MSDN Community Support | Feedback to us

    Wednesday, June 6, 2012 6:11 AM