Well, ever since i've started working with ATLAS (I mean, AJAX extensions:) )I've been trying to build a cool control which would let me upload files like gmail does. As most of you know by now, reading files from the browser in a way that works in
之所以這樣說是因為如果我們要開發面向借口編程的服務的話,那麼你就比較倒黴了。無論是WCF固有的KnownType特性還是ServiceKnownType,你都會遇到這樣那樣的困難。如果我們使用KnownType,那麼我們得在父類中無休止的聲名出子類來。每增加一個子類就得在父類中標記一下。這種方法顯然違反了物件導向的原則。如果使用ServiceKnownType,那就得配置一些東西來標明我們的類型,但是成功的機率小的可憐。舉個例子:Code highlighting produced by
http://stackoverflow.com/questions/956743/howto-create-a-system-linq-expressions-expression-for-like http://trentacular.com/2010/08/linq-to-entities-wild-card-like-extension-method/http://www.albahari.com/nutshell/predicatebuilder.aspx6 down vote
這段時間做了些silverlight方面的項目,遇到了一些問題,但是磕磕絆絆的還是都解決了。今天先貼一個出來。當我們用WebClient 從網路上擷取圖片流然後用BitmapImage綁定到前端的的Image的時候也許會遇到些意想不到的問題。先給出些範例程式碼: 1 public MainPage() 2 { 3 InitializeComponent(); 4 5 6 Uri uri = new Uri(
http://using.castleproject.org/display/IoC/Fluent+Registration+API http://developer.51cto.com/art/200907/139983.htm http://blog.ploeh.dk/CategoryView,category,CastleWindsor.aspx This is a scratchpad for documentation on Microkernel's fluent