Nettiers.AdventureWorks.Entities.EntityUtil.GetEntity C# (CSharp) Method

GetEntity() public static method

Gets the item within entityList at the position specified by index.
public static GetEntity ( IEnumerable entityList, int index ) : Object
entityList IEnumerable The collection of business objects.
index int The position within entityList that contains the current item.
return Object
		public static Object GetEntity(IEnumerable entityList, int index)
		{
			IList list = GetEntityList(entityList);
			Object entity = null;

			if ( list.Count > index )
			{
				entity = list[index];
			}

			return entity;
		}

Same methods

EntityUtil::GetEntity ( IList entities, String propertyName, Object propertyValue ) : Object