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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/corlib/System.Security.Policy/AllMembershipCondition.cs')
-rwxr-xr-xmcs/class/corlib/System.Security.Policy/AllMembershipCondition.cs86
1 files changed, 0 insertions, 86 deletions
diff --git a/mcs/class/corlib/System.Security.Policy/AllMembershipCondition.cs b/mcs/class/corlib/System.Security.Policy/AllMembershipCondition.cs
deleted file mode 100755
index 858ef857c00..00000000000
--- a/mcs/class/corlib/System.Security.Policy/AllMembershipCondition.cs
+++ /dev/null
@@ -1,86 +0,0 @@
-//
-// System.Security.Policy.AllMembershipCondition.cs
-//
-// Author:
-// Ajay kumar Dwivedi (adwiv@yahoo.com)
-//
-
-using System;
-using System.Security;
-
-
-namespace System.Security.Policy
-{
- /// <summary>
- /// Summary description for AllMembershipCondition.
- /// </summary>
- [Serializable]
- public sealed class AllMembershipCondition : IMembershipCondition,
- ISecurityEncodable, ISecurityPolicyEncodable
- {
- // Tag for Xml Data
- private static readonly string XmlTag = "IMembershipCondition";
-
- public AllMembershipCondition()
- {}
-
- //Always returns true
- public bool Check(Evidence evidence)
- {
- return true;
- }
-
- public IMembershipCondition Copy()
- {
- return new AllMembershipCondition();
- }
-
- public override bool Equals(object o)
- {
- if(o is System.Security.Policy.AllMembershipCondition)
- return true;
- return false;
- }
-
- public void FromXml(SecurityElement e)
- {
- FromXml(e, null);
- }
-
- //Fixme: is there a need for all this????
- public void FromXml(SecurityElement e, PolicyLevel level)
- {
- if(e == null)
- throw new ArgumentNullException("e");
- if(e.Tag != XmlTag)
- throw new ArgumentException("e","The Tag of SecurityElement must be "
- + AllMembershipCondition.XmlTag);
- }
-
- //What's the use of a hashcode here. Equals is always true.
- public override int GetHashCode()
- {
- return 0;
- }
-
- public override string ToString()
- {
- return "All Code";
- }
-
- public SecurityElement ToXml()
- {
- return ToXml(null);
- }
-
- public SecurityElement ToXml(PolicyLevel level)
- {
- SecurityElement se = new SecurityElement(XmlTag);
- Type type = this.GetType();
- string classString = type.FullName + ", " + type.Assembly;
- se.AddAttribute("class",classString);
- se.AddAttribute("version","1");
- return se;
- }
- }
-}