diff --git a/sources/OpenMcdf.Extensions/OLEProperties/OLEPropertiesContainer.cs b/sources/OpenMcdf.Extensions/OLEProperties/OLEPropertiesContainer.cs index 6ac01193..c2fa0feb 100644 --- a/sources/OpenMcdf.Extensions/OLEProperties/OLEPropertiesContainer.cs +++ b/sources/OpenMcdf.Extensions/OLEProperties/OLEPropertiesContainer.cs @@ -14,10 +14,10 @@ public class OLEPropertiesContainer public bool HasUserDefinedProperties { get; private set; } - public ContainerType ContainerType { get; internal set; } + public ContainerType ContainerType { get; } private Guid? FmtID0 { get; } - public PropertyContext Context { get; private set; } + public PropertyContext Context { get; } private readonly List properties = new List(); internal CFStream cfStream; @@ -126,8 +126,6 @@ internal OLEPropertiesContainer(CFStream cfStream) UserDefinedProperties = new OLEPropertiesContainer(pStream.PropertySet1.PropertyContext.CodePage, ContainerType.UserDefinedProperties); HasUserDefinedProperties = true; - UserDefinedProperties.ContainerType = ContainerType.UserDefinedProperties; - for (int i = 0; i < pStream.PropertySet1.Properties.Count; i++) { if (pStream.PropertySet1.PropertyIdentifierAndOffsets[i].PropertyIdentifier == 0) continue;