public override void EncodeWithCoder(NSCoder aCoder)
{
if (aCoder.AllowsKeyedCoding)
{
aCoder.EncodeObject(SerializedRepresentation(), "NSFileWrapperData");
}
else
{
int wrapType = (int)_wrapperType;
aCoder.EncodeValueOfObjCType<int>(ref wrapType);
// Dont store the file name
aCoder.EncodeObject(_preferredFilename);
aCoder.EncodeObject(_fileAttributes);
aCoder.EncodeObject(_wrapperData);
//aCoder.EncodeObject(_iconImage);
}
}