private object ParseBasicProperty(Property prop, IEventRecord record)
        {
            object propertyValue = null;

            switch (prop.Type)
            {
            case (int)TDH_IN_TYPE.TDH_INTYPE_ANSISTRING:
                propertyValue = record.GetAnsiString(prop.Name);
                break;

            case (int)TDH_IN_TYPE.TDH_INTYPE_BINARY:
                propertyValue = record.GetBinary(prop.Name);
                break;

            case (int)TDH_IN_TYPE.TDH_INTYPE_COUNTEDSTRING:
                propertyValue = record.GetCountedString(prop.Name);
                break;

            case (int)TDH_IN_TYPE.TDH_INTYPE_INT8:
                propertyValue = record.GetInt8(prop.Name);
                break;

            case (int)TDH_IN_TYPE.TDH_INTYPE_INT16:
                propertyValue = record.GetInt16(prop.Name);
                break;

            case (int)TDH_IN_TYPE.TDH_INTYPE_INT32:
                propertyValue = record.GetInt32(prop.Name);
                break;

            case (int)TDH_IN_TYPE.TDH_INTYPE_INT64:
                propertyValue = record.GetInt64(prop.Name);
                break;

            case (int)TDH_IN_TYPE.TDH_INTYPE_UINT8:
                propertyValue = record.GetUInt8(prop.Name);
                break;

            case (int)TDH_IN_TYPE.TDH_INTYPE_UINT16:
                propertyValue = record.GetUInt16(prop.Name);
                break;

            case (int)TDH_IN_TYPE.TDH_INTYPE_UINT32:
                propertyValue = record.GetUInt32(prop.Name);
                break;

            case (int)TDH_IN_TYPE.TDH_INTYPE_UINT64:
                propertyValue = record.GetUInt64(prop.Name);
                break;

            case (int)TDH_IN_TYPE.TDH_INTYPE_UNICODESTRING:
                propertyValue = record.GetUnicodeString(prop.Name);
                break;

            case (int)TDH_IN_TYPE.TDH_INTYPE_FILETIME:
                propertyValue = record.GetDateTime(prop.Name);
                break;

            case (int)TDH_IN_TYPE.TDH_INTYPE_POINTER:
                propertyValue = record.GetUInt64(prop.Name);
                break;

            default:
                propertyValue = "<Unknown type>";
                break;
            }

            return(propertyValue);
        }