Statistics
| Branch: | Revision:

root / trunk / hammock / src / net35 / Hammock / Attributes / Specialized / EntityAttribute.cs @ 0eea575a

History | View | Annotate | Download (530 Bytes)

1
using System;
2
using System.Text;
3

    
4
namespace Hammock.Attributes.Specialized
5
{
6
#if !SILVERLIGHT
7
    [Serializable]
8
#endif
9
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
10
    public class EntityAttribute : Attribute
11
    {
12
        public EntityAttribute()
13
        {
14
            ContentType = "text/xml";
15
            ContentEncoding = Encoding.UTF8;
16
        }
17

    
18
        public virtual string ContentType { get; private set; }
19
        public virtual Encoding ContentEncoding { get; set; }
20
    }
21
}