[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[DotGNU]System.Security.SecurityElement patch
From: |
Carl-Adam Brengesjö |
Subject: |
[DotGNU]System.Security.SecurityElement patch |
Date: |
Mon, 3 May 2004 02:04:13 +0200 |
User-agent: |
KMail/1.5.4 |
Noticed that the set method of the `Attributes' property didn't actually save
the values, it just walked the hashtable, checked it's values for invalid
data and then just returned. (see attached patch).
And I also though of something else, as the hashtable are being constructed
each time it's being fetched (get_Attributes) you cant add attributes
afterwards, like:
SecurityElement se = new SecurityElement("user", "foo");
se.Attributes.Add("group", "bar"); // won't have any effect
the plain XML should look like this:
<user group="bar">foo</user>
but looks like this:
<user>foo</user>
But the current implementation cannot acheive this. Should it be like this, or
is it something that should be done?
Carl-Adam Brengesjö
Sweden
SecurityElement.cs.patch
Description: Text Data
- [DotGNU]System.Security.SecurityElement patch,
Carl-Adam Brengesjö <=