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

BrowsableAttribute.cs « System.ComponentModel « System « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e56beb2f80939d56a2f5bf7851101fbb25bbb852 (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
38
//
// System.ComponentModel.BrowsableAttribute.cs
//
// Author:
//   Miguel de Icaza (miguel@ximian.com)
//
// (C) Ximian, Inc.  http://www.ximian.com
//
//

namespace System.ComponentModel {

	[AttributeUsage (AttributeTargets.Property | AttributeTargets.Event)]
	public sealed class BrowsableAttribute : Attribute {
		bool browsable;
		
		public static readonly BrowsableAttribute No;
		public static readonly BrowsableAttribute Yes;

		static BrowsableAttribute ()
		{
			No = new BrowsableAttribute (false);
			Yes = new BrowsableAttribute (false);
		}
		
		public BrowsableAttribute (bool browsable)
		{
			this.browsable = browsable;
		}

		public bool Browsable {
			get {
				return browsable;
			}
		}
		
	}
}