Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ public virtual Block GetBlock()
return blkFld.GetBlock(this);
}

/// <summary>
/// Drops the converted block cached on this block info, so it can be garbage collected.
/// Other blocks stay cached, so blocks referenced by many others (UDTs, FBs) are not converted again.
/// </summary>
public void ClearCachedBlock()
{
_Block = null;
}

public virtual string GetSourceBlock(bool useSymbols = true)
{
if (ParentFolder is BlocksOfflineFolder)
Expand Down
Loading