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

EditorBrowsableAttribute.cs « System.ComponentModel « System « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 912cdb13eed6b1fa02b71ba3798c15e9f07a2037 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using System;

namespace System.ComponentModel
{

	/// <summary>
	/// Specifies that a property or method is viewable in an editor. This class cannot be inherited.
	/// </summary>
	[MonoTODO("Missing description for State. Only minimal testing.")]
	[AttributeUsage(
		AttributeTargets.Class|
		AttributeTargets.Constructor|
		AttributeTargets.Delegate|
		AttributeTargets.Enum|
		AttributeTargets.Event|
		AttributeTargets.Field|
		AttributeTargets.Interface|
		AttributeTargets.Method|
		AttributeTargets.Property|
		AttributeTargets.Struct)]
	public sealed class EditorBrowsableAttribute : Attribute
	{
		private System.ComponentModel.EditorBrowsableState state;

		/// <summary>
		/// FIXME: Summary description for State.
		/// </summary>
		public System.ComponentModel.EditorBrowsableState State
		{
			get 
			{
				return state;
			}
		}

		/// <summary>
		/// Initializes a new instance of the System.ComponentModel.EditorBrowsableAttribute class with an System.ComponentModel.EditorBrowsableState.
		/// </summary>
		/// <param name="state">The System.ComponentModel.EditorBrowsableState to set System.ComponentModel.EditorBrowsableAttribute.State to.</param>
		public EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState state)
		{
			this.state = state;
		}

		/// <summary>
		/// Initializes a new instance of the System.ComponentModel.EditorBrowsableAttribute class with an System.ComponentModel.EditorBrowsableState == System.ComponentModel.EditorBrowsableState.Always.
		/// </summary>
		public EditorBrowsableAttribute()
		{
			this.state = System.ComponentModel.EditorBrowsableState.Always; 
		}
	}
}