// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool Xbim.CodeGeneration 
//  
//     Changes to this file may cause incorrect behaviour and will be lost if
//     the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------

using Xbim.Ifc4.Interfaces;
using System.Collections.Generic;
using System.Linq;
using Xbim.Common;

// ReSharper disable once CheckNamespace
namespace Xbim.Ifc2x3.UtilityResource
{
	public partial class @IfcTableRow : IIfcTableRow
	{

		[CrossSchemaAttribute(typeof(IIfcTableRow), 1)]
		IItemSet<IIfcValue> IIfcTableRow.RowCells 
		{ 
			get
			{
			
				return _rowCellsIfc4 ?? (_rowCellsIfc4 = new Common.Collections.ExtendedItemSet<MeasureResource.IfcValue, IIfcValue>(
                    RowCells, 
                    new ItemSet<IIfcValue>(this, 0, -1), 
                    v => v.ToIfc4(), 
                    v => v.ToIfc3()));
			} 
		}

		//private field to hold any extended data
		private IItemSet<IIfcValue> _rowCellsIfc4;

		[CrossSchemaAttribute(typeof(IIfcTableRow), 2)]
		Ifc4.MeasureResource.IfcBoolean? IIfcTableRow.IsHeading 
		{ 
			get
			{
				//## Handle return of IsHeading for which no match was found
                return new Ifc4.MeasureResource.IfcBoolean(IsHeading);
				//##
			} 
			set
			{
				//## Handle setting of IsHeading for which no match was found
                if (!value.HasValue)
                    IsHeading = false;
                else
                    IsHeading = value.Value;
				//##
				
			}
		}
	//## Custom code
	//##
	}
}