download Description.cs
Language: C#
LOC: 26
Project Info
RAPPTOR
Server: Spider_20090228_inc
Type: filesystem
...RapptorCore\Data\Modifiers\
   Description.cs
   Readable.cs
   Size.cs
   Text.cs
   Title.cs
   Writable.cs

using System;
using System.Collections.Generic;
using System.Text;

namespace Rapptor.Core.Data
{
    [Modifier(typeof(DescriptionAttribute))]
    public interface IHasDescription : IModifier
    {
        string Description { get; }
    }

    [AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = false)]
    public class DescriptionAttribute : Attribute, IHasDescription
    {
        public DescriptionAttribute() { }
        public DescriptionAttribute(string description) { _description = description; }

        private string _description = string.Empty;
        public string Description
        {
            get { return _description; }
        }
    }

    public partial class DataCreator
    {
        public DescriptionAttribute MDescription(string description) { return new DescriptionAttribute(description); }
    }
}

About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us