2012년 1월 25일 수요일
Get comma separated string from List
List<string> ids;
string cids = string.Join(",", ids.ToArray());
2012년 1월 18일 수요일
Select hierarchical data
with h(id, name, parent, level) as
(
select id, name, parent, 0 as level
from task
where id = 48358
union all
select t.id, t.name, t.parent, t2.level + 1
from task t
inner join h t2 on t.parent = t2.id
)
select * from h;
2012년 1월 6일 금요일
2012년 1월 5일 목요일
Image convert in c#
Image imgInFile = Image.FromFile(inFileName);
imgInFile.Save(outFileName, ImageFormat.Jpeg);
2012년 1월 3일 화요일
IEnumerable to ObserverbleCollection
IEnumerable<Object> ienumerable;
ObserverbleCollection<Object> observableCollection = new ObservableCollection<Object>(ienumerable);
피드 구독하기:
글 (Atom)