// ------------------------------------------------------------------------------
// <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;

//## Custom using statements
//##

// ReSharper disable once CheckNamespace
namespace Xbim.Ifc4x3.StructuralLoadResource
{
	public partial class @IfcSurfaceReinforcementArea : IIfcSurfaceReinforcementArea
	{

		[CrossSchemaAttribute(typeof(IIfcSurfaceReinforcementArea), 2)]
		IItemSet<Xbim.Ifc4.MeasureResource.IfcLengthMeasure> IIfcSurfaceReinforcementArea.SurfaceReinforcement1 
		{ 
			get
			{
			
				return new Common.Collections.ProxyValueSet<MeasureResource.IfcLengthMeasure, Ifc4.MeasureResource.IfcLengthMeasure>(SurfaceReinforcement1, 
					s => new Ifc4.MeasureResource.IfcLengthMeasure(s), 
					t => new MeasureResource.IfcLengthMeasure(t));
			} 
		}

		[CrossSchemaAttribute(typeof(IIfcSurfaceReinforcementArea), 3)]
		IItemSet<Xbim.Ifc4.MeasureResource.IfcLengthMeasure> IIfcSurfaceReinforcementArea.SurfaceReinforcement2 
		{ 
			get
			{
			
				return new Common.Collections.ProxyValueSet<MeasureResource.IfcLengthMeasure, Ifc4.MeasureResource.IfcLengthMeasure>(SurfaceReinforcement2, 
					s => new Ifc4.MeasureResource.IfcLengthMeasure(s), 
					t => new MeasureResource.IfcLengthMeasure(t));
			} 
		}

		[CrossSchemaAttribute(typeof(IIfcSurfaceReinforcementArea), 4)]
		Ifc4.MeasureResource.IfcRatioMeasure? IIfcSurfaceReinforcementArea.ShearReinforcement 
		{ 
			get
			{
				if (!ShearReinforcement.HasValue) return null;
				return new Ifc4.MeasureResource.IfcRatioMeasure(ShearReinforcement.Value);
			} 
			set
			{
				ShearReinforcement = value.HasValue ? 
					new MeasureResource.IfcRatioMeasure(value.Value) :  
					 new MeasureResource.IfcRatioMeasure?() ;
				
			}
		}
	//## Custom code
	//##
	}
}