コード例 #1
0
        public int SetObject(IEnumerable objCollection, CellBorderStyle borderStyle)
        {
            _borderStyle = borderStyle;

            Type objType = objCollection.GetType();

            if (TypeInterrogator.IsDictionaryType(objType))
            {
                _iter = new Traverser(CollConverter.ToList(objCollection, GenBuilder.BuildKeyValueType(objType)));
            }
            else
            {
                _iter = new Traverser(CollConverter.ToList(objCollection));
            }

            _objControl.SetObject(_iter.First, null, _borderStyle);

            return(0);
        }
コード例 #2
0
 public object ToPropertyValue(object cv)
 {
     return((object)(CollConverter.ToList((IEnumerable)cv, _itemType)));
 }