diff --git a/Stack/Opc.Ua.Core/Types/Encoders/BinaryDecoder.cs b/Stack/Opc.Ua.Core/Types/Encoders/BinaryDecoder.cs
index 3cba6fb10e..f7d6271521 100644
--- a/Stack/Opc.Ua.Core/Types/Encoders/BinaryDecoder.cs
+++ b/Stack/Opc.Ua.Core/Types/Encoders/BinaryDecoder.cs
@@ -125,6 +125,17 @@ namespace Opc.Ua
get { return (int)m_reader.BaseStream.Position; }
}
+ ///
+ /// Gets the stream that the decoder is reading from.
+ ///
+ public Stream BaseStream
+ {
+ get
+ {
+ return m_reader.BaseStream;
+ }
+ }
+
///
/// Decodes a message from a stream.
///