internal TnefPropertyReader(TnefReader tnef)
        {
            propertyTag = TnefPropertyTag.Null;
            propertyName = new TnefNameId ();
            rawValueOffset = 0;
            rawValueLength = 0;
            propertyIndex = 0;
            propertyCount = 0;
            valueIndex = 0;
            valueCount = 0;
            rowIndex = 0;
            rowCount = 0;

            reader = tnef;
        }
		void LoadPropertyName ()
		{
			var guid = new Guid (ReadBytes (16));
			var kind = (TnefNameIdKind) ReadInt32 ();

			if (kind == TnefNameIdKind.Name) {
				var name = ReadUnicodeString ();

				propertyName = new TnefNameId (guid, name);
			} else if (kind == TnefNameIdKind.Id) {
				int id = ReadInt32 ();

				propertyName = new TnefNameId (guid, id);
			} else {
				reader.SetComplianceError (TnefComplianceStatus.InvalidAttributeValue);
				propertyName = new TnefNameId (guid, 0);
			}
		}