in src/nms-api/Util/MessagePropertyIntercepter.cs [54:76]
protected override object GetObjectProperty(string name)
{
PropertyInfo propertyInfo = this.messageType.GetProperty(name, publicBinding);
if (name.StartsWith("NMS"))
{
if (null != propertyInfo && propertyInfo.CanRead)
{
return propertyInfo.GetValue(this.message, null);
}
else
{
FieldInfo fieldInfo = this.messageType.GetField(name, publicBinding);
if (null != fieldInfo)
{
return fieldInfo.GetValue(this.message);
}
}
}
return base.GetObjectProperty(name);
}