public Add ( |
||
value | /// The SqlConstant to be added to the end of this SqlConstantCollection. /// | |
리턴 | void |
/// <summary> /// Creates a SqlConstantCollection from a list of values. /// </summary> /// <remarks> /// The type of SqlConstant items in the collection is determined automatically. /// See <see cref="Add"/> method for more info. /// </remarks> /// <param name="values"></param> /// <returns></returns> public static SqlConstantCollection FromList(IList values) { SqlConstantCollection collection = new SqlConstantCollection(values.Count); foreach (object val in values) { collection.Add(val); } return collection; }
/// <summary> /// Creates a SqlConstantCollection from a list of values. /// </summary> /// <remarks> /// The type of SqlConstant items in the collection is determined automatically. /// See <see cref="Add"/> method for more info. /// </remarks> /// <param name="values"></param> /// <returns></returns> public static SqlConstantCollection FromList(IList values) { SqlConstantCollection collection = new SqlConstantCollection(values.Count); foreach (object val in values) { collection.Add(val); } return(collection); }