Hi,
I have a class, whcih contains certails properties. I want to create multiple objects of this class, and create one single XML file out of that.
Can anyone help on that?
[DataContract]
public sealed class HsdResponseMessage : MessageBase, IMessage
{
[DataMember(Order = 1)] public string RequestMessageFileName { get; set; }
[DataMember(Order = 2)] public string RequestMessageId { get; set; }
[DataMember(Order = 3)] public string HsdRecordId { get; private set; }
[DataMember(Order = 4)] public string HsdException { get; private set; }
[DataMember(Order = 5)] public bool HsdCommitStatus { get; private set; }
[DataMember(Order = 6)] public string Title { get; private set; }
[DataMember(Order = 7)] public string Description { get; private set; }
[DataMember(Order = 8)] public string Steps { get; private set; }
[DataMember(Order = 9)] public int HasAttachments { get; private set; }
[DataMember(Order = 10)] public string AttachmentFileName { get; private set; }
public HsdResponseMessage(MessageHeader header, string fileName, string requestMessageId, string requestMessageFileName, string hsdRecordId, string strTitle, string strDescription, string strSteps, int iHasAttachments, string strAttachmentFileName)
: base(MessageTypeEnum.HsdResponse, header)
{
FileName = fileName;
RequestMessageFileName = requestMessageFileName;
RequestMessageId = requestMessageId;
HsdRecordId = hsdRecordId;
Title = strTitle;
Description = strDescription;
Steps = strSteps;
HasAttachments = iHasAttachments;
AttachmentFileName = strAttachmentFileName;
HsdCommitStatus = true;
HsdException = string.Empty;
}
}
No comments:
Post a Comment