Hd.QueryExtensions.SqlConstantCollection.FromList C# (CSharp) Method

FromList() public static method

Creates a SqlConstantCollection from a list of values.
The type of SqlConstant items in the collection is determined automatically. See Add method for more info.
public static FromList ( IList values ) : SqlConstantCollection
values IList
return SqlConstantCollection
		public static SqlConstantCollection FromList(IList values)
		{
			SqlConstantCollection collection = new SqlConstantCollection(values.Count);
			foreach (object val in values)
			{
				collection.Add(val);
			}
			return collection;
		}