Skip to content

Commit

Permalink
Merge pull request #178 from Numpsy/intenral
Browse files Browse the repository at this point in the history
Remove a couple of private property setters in OLEPropertiesContainer
  • Loading branch information
ironfede authored Oct 5, 2024
2 parents 50f5f1a + 7a0391e commit 7ee006f
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<OLEProperty> properties = new List<OLEProperty>();
internal CFStream cfStream;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7ee006f

Please sign in to comment.