protected override object GetObjectProperty(string name)
{
PropertyInfo propertyInfo = this.messageType.GetProperty(name, publicBinding);
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);
}