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:
authorSebastien Pouliot <sebastien@ximian.com>2004-01-03 03:56:33 +0300
committerSebastien Pouliot <sebastien@ximian.com>2004-01-03 03:56:33 +0300
commit860cead17058983eb81c9ca855f232418aff6a86 (patch)
tree622c8e790c04cd2659b826ca45841d56623a9bec /mcs/class/corlib/System.Security/SecurityElement.cs
parentc935882be6d3f2a5bd0772f70f2ed9a01927d162 (diff)
2004-01-02 Sebastien Pouliot <spouliot@videotron.ca>
* AllowPartiallyTrustedCallersAttribute.cs: Fixed AttributeUsage using 1.2 documentation (AllowMultiple=false, Inherited=false) * NamedPermissionSet.cs: Changes to match unit tests. * PermissionSet.cs: Implemented Copy, Intersect, IsSubsetOf and Union methods. Corrected FromXml. * PolicyLevelType.cs: Added missing [Serializable]. * SecurityElement.cs: Fixed constructor to match unit tests. * SecurityException.cs: Added support for GrantedSet and RefusedSet properties (since 1.1). Set HResult to 0x8013150A. * SecurityZone.cs: Added missing [Serializable]. * SuppressUnmanagedCodeSecurityAttribute.cs: Fixed AttributeUsage using 1.2 documentation (AllowMultiple=true, Inherited=false) * UnverifiableCodeAttribute.cs: Fixed AttributeUsage using 1.2 documentation (AllowMultiple=true, Inherited=false) svn path=/trunk/mcs/; revision=21610
Diffstat (limited to 'mcs/class/corlib/System.Security/SecurityElement.cs')
-rwxr-xr-xmcs/class/corlib/System.Security/SecurityElement.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/mcs/class/corlib/System.Security/SecurityElement.cs b/mcs/class/corlib/System.Security/SecurityElement.cs
index 4aeb033328b..05317eaba79 100755
--- a/mcs/class/corlib/System.Security/SecurityElement.cs
+++ b/mcs/class/corlib/System.Security/SecurityElement.cs
@@ -42,7 +42,7 @@ namespace System.Security
public SecurityElement (string tag, string text)
{
this.Tag = tag;
- this.Text = (text == null) ? String.Empty : text;
+ this.Text = text;
}
public Hashtable Attributes {
@@ -255,7 +255,9 @@ namespace System.Security
public static bool IsValidText (string value)
{
- return value != null && value.IndexOfAny (invalid_text_chars) == -1;
+ if (value == null)
+ return true;
+ return value.IndexOfAny (invalid_text_chars) == -1;
}
public SecurityElement SearchForChildByTag (string tag)