I am trying this way, is there any other way in Rebex? optimal or proper?
LinkedResourceCollection linkedCollection = validatedMessage.Resources;
if(linkedCollection != null)
{
foreach (LinkedResource lr in linkedCollection)
{
if (lr.ContentId != null)
{
Stream stream = lr.GetContentStream();
Attachment at = new Attachment(stream, lr.FileName);
attachmentCollection.Add(at);
}
}
}