Why not save customheaders in a ArrayList containing HeaderField objects? Fore example I need to work with the individual header fields, and it would be nice to get a collection of HeaderField objects, instead of working with a NameValueCollection.
The Header class could look something like:
public class HeaderField
{
string fieldName;
string fieldBody;
public string FieldName
{
get { return fieldName; }
set { fieldName = value; }
}
public string FieldBody
{
get { return fieldBody; }
set { fieldBody = value; }
}
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
Why not save customheaders in a ArrayList containing HeaderField objects? Fore example I need to work with the individual header fields, and it would be nice to get a collection of HeaderField objects, instead of working with a NameValueCollection.
The Header class could look something like:
public class HeaderField
{
string fieldName;
string fieldBody;
public string FieldName
{
get { return fieldName; }
set { fieldName = value; }
}
public string FieldBody
{
get { return fieldBody; }
set { fieldBody = value; }
}
}
This should be quick and I'll add it to the next release. Thanks for the input.