Esempio n. 1
0
		public virtual int LookupTypePoints( RewardType[] types, Type type )
		{
			for ( int i = 0; i < types.Length; ++i )
			{
				if ( types[i].Contains( type ) )
					return types[i].Points;
			}

			return 0;
		}
Esempio n. 2
0
		public virtual int LookupTypePoints(RewardType[] types, Type type)
		{
			return (from t in types where t.Contains(type) select t.Points).FirstOrDefault();
		}