Welcome to mirror list, hosted at ThFree Co, Russian Federation.

DesignOnlyAttribute.cs « System.ComponentModel « System « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 81b39db62f17116f6b955899d8ad6c39ef3ba47a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// System.ComponentModel.DesignOnlyAttribute.cs
//
// Author:
//   Miguel de Icaza (miguel@ximian.com)
//
// (C) Ximian, Inc.  http://www.ximian.com
//
//

namespace System.ComponentModel {

	[AttributeUsage (AttributeTargets.Property)]
	public sealed class DesignOnlyAttribute : Attribute {
		bool design_only;
		
		public static readonly DesignOnlyAttribute No;
		public static readonly DesignOnlyAttribute Yes;

		static DesignOnlyAttribute ()
		{
			No = new DesignOnlyAttribute (false);
			Yes = new DesignOnlyAttribute (false);
		}
		
		public DesignOnlyAttribute (bool design_only)
		{
			this.design_only = design_only;
		}

		public bool IsDesignOnly {
			get {
				return design_only;
			}
		}
	}
}