PavelTorgashov / FastColoredTextBox

Fast Colored TextBox for Syntax Highlighting. The text editor component for .NET.
Other
1.22k stars 465 forks source link

Ammend OpenBindingFile to allow to pass in a stream instead of filename #213

Closed RNoeldner closed 4 years ago

RNoeldner commented 4 years ago

If a stream is allowed to be passed in the consumer of the text box has more options, to get the data from the source Changes to files are minimal. a) Allow to change access for regular files e.g to open a file in shared for reading, right now they are locked b) Allows to pass in files that are compressed or encrypted e.G. file, being processed by GZipStream or ZipFile

Note: Some types of streams might not provide a seek method, these would not work.

RNoeldner commented 4 years ago

Confused local property with parameter name, needed to fix this