internal static ContentDispositionWrapper GetSerializeableContentDisposition(ContentDisposition cd)
        {
            if (cd == null)
                return null;

            ContentDispositionWrapper scd = new ContentDispositionWrapper();
            scd._creationDate = cd.CreationDate;
            scd._dispositionType = cd.DispositionType;
            scd._fileName = cd.FileName;
            scd._inline = cd.Inline;
            scd._modificationDate = cd.ModificationDate;
          //  scd._parameters = CollectionWrapper.GetSerializeableCollection(cd.Parameters);            
            scd._readDate = cd.ReadDate;
            scd._size = cd.Size;

            return scd;
        }
Exemple #2
0
        internal static ContentDispositionWrapper GetSerializeableContentDisposition(ContentDisposition cd)
        {
            if (cd == null)
            {
                return(null);
            }

            ContentDispositionWrapper scd = new ContentDispositionWrapper();

            scd._creationDate     = cd.CreationDate;
            scd._dispositionType  = cd.DispositionType;
            scd._fileName         = cd.FileName;
            scd._inline           = cd.Inline;
            scd._modificationDate = cd.ModificationDate;
            //  scd._parameters = CollectionWrapper.GetSerializeableCollection(cd.Parameters);
            scd._readDate = cd.ReadDate;
            scd._size     = cd.Size;

            return(scd);
        }