예제 #1
0
        public static Stream _stream(this MessageBinaryEncoderBase obj)
        {
            var fieldInfo = typeof(MessageBinaryEncoderBase).GetField("_stream", BindingFlags.NonPublic | BindingFlags.Instance);

            return((Stream)fieldInfo.GetValue(obj));
        }
예제 #2
0
        public static int?MaxMessageSize(this MessageBinaryEncoderBase obj)
        {
            var propertyInfo = typeof(MessageBinaryEncoderBase).GetProperty("MaxMessageSize", BindingFlags.NonPublic | BindingFlags.Instance);

            return((int?)propertyInfo.GetValue(obj));
        }
예제 #3
0
        public static MessageEncoderSettings _encoderSettings(this MessageBinaryEncoderBase obj)
        {
            var fieldInfo = typeof(MessageBinaryEncoderBase).GetField("_encoderSettings", BindingFlags.NonPublic | BindingFlags.Instance);

            return((MessageEncoderSettings)fieldInfo.GetValue(obj));
        }