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

NamedPermissionSet.cs « System.Security « corlib « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0f500e6de98c9bd0e9f4b205f6bf6cf5c9091a03 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
//
// System.Security.NamedPermissionSet
//
// Author:
//   Dan Lewis (dihlewis@yahoo.co.uk)
//
// (C) 2002
//
// Stubbed.
//

using System;
using System.Security.Permissions;

namespace System.Security {
	
	[MonoTODO]
	[Serializable]
	public sealed class NamedPermissionSet : PermissionSet {
		public NamedPermissionSet (string name, PermissionSet set) : base (set) {
			this.name = name;
			this.description = "";
		}

		public NamedPermissionSet (string name, PermissionState state) : base (state) {
			this.name = name;
			this.description = "";
		}

		public NamedPermissionSet (NamedPermissionSet set) : this (set.name, set) {
		}

		public NamedPermissionSet (string name) : this (name, PermissionState.None) {
		}

		public string Description {
			get { return description; }
			set { description = value; }
		}

		public string Name {
			get { return name; }
			set { name = value; }
		}

		public override PermissionSet Copy () {
			return null;
		}

		public NamedPermissionSet Copy (string name) {
			return null;
		}

		public override void FromXml (SecurityElement e) {
		}

		public override SecurityElement ToXml () {
			return null;
		}

		// private

		private string name;
		private string description;
	}
}