コード例 #1
0
        public void AddProperty(string _propertyName, DBValue _value)
        {
            if (_value == null)
            {
                return;
            }

            var index = this.Index(_propertyName);

            if (index != -1)
            {
                Values[index] = _value;
            }
            else
            {
                PropertysNames.Add(_propertyName);
                Values.Add(_value);
            }
        }
コード例 #2
0
		public static IEnumerable<string> enumerbleString<T>(this IEnumerable<T> collection, params string[] PropertysNames)
		{
			var props = PropertysNames.Select(x => typeof(T).GetProperty(x)).ToArray();
			return collection.Select(x => OneElementReflect(x, props));
		}