Mitsu's blog

Discussing topics related to .Net, WPF, C# and Linq

Browse by Tags

Tagged Content List
  • Blog Post: Some basic sample to make your code “Linq ready”

    Linq has been shipped with VS2008/.Net 3.5 and is not really new. If more and more people are getting used to its syntax, it’s sometimes hard to imagine all the scenarii where Linq to object can replace the classical way we program. During some Silverlight coding, I changed my code to make it run...
  • Blog Post: C# 4 expressions: blocks [Part I]

    Since .Net 3.5 and Linq, the C# compiler is capable of generating expression trees instead of standard executable IL. Even if Linq opens the door of meta-programming (using the code to define something else, like a Sql query), we still have a lot of limitations. A C# expression is limited to a single...
  • Blog Post: Read/Write selector in C# 3 then C# 4

    I needed some quiet time to finish this article so I took some vacations here (Mauritius Island) Expressions are used to evaluate something. We usually use them in the right side of an affectation or at any place where a value is expected. It can be composed with many other values, with computations...
  • Blog Post: Surface Academy Toolkit 2009

    Just a quick post to share this project with you. Microsoft France organized a 2 month long internship in Paris to develop a Surface Toolkit. We have provided a bunch of controls, including a Card Game Surface Starter kit that you can see here: The project on Codeplex: http://surfaceacademy2009.codeplex...
  • Blog Post: Linq: how to share parameters between lambda expressions ?

    Before going into Linq, here is again one of my pictures: Le Louvre by night, Paris When using Linq to objects, you will quickly feel the need to pass some parameters from a method to another but it’s not so easy because each Linq method is not calling the following one. In a Linq sequence,...
  • Blog Post: WPF/Surface demo: driving an extending desktop with a popfly duck !

    Contrarily to the title, this is a serious article ! From 10th to 12th of February Microsoft France have organized the Paris Techdays event. During the developer keynote, I have presented some Surface development features with a funny demo. Here is a video of this demo but in french. Now...
  • Blog Post: WPF and Silverlight BookControls updated for Silverlight 2 RTM

    You can now find the Silverlight 2 RTM version of this pageturn control, still here on codeplex : http://www.codeplex.com/wpfbookcontrol I have also updated the online example showing flickr pictures in a book: http://blogs.msdn.com/mitsu/archive/2008/05/14/create-a-virtual-book-with-your-flickr-pictures...
  • Blog Post: Linq to Sql CompiledQuery container

    Before we go deep into Linq to Sql, I wanted to share with you one of my pictures made last week at Chamonix Mont Blanc from "L'aiguille du midi" during some days off. Ok now let's go. Here is just a little trick but with some interesting patterns that could be useful in some other contexts...
  • Blog Post: TreeSelector : playing with generics and type inference

    This piece of code is part of a personal bigger project that I am working on and I think there are interesting thing in it and I wanted to share it with you. I am trying to use generics and type inference to imagine new kind of method prototype. With all the stuff around Linq like lambda expressions...
  • Blog Post: Thinking about new C# method prototypes: object as dictionary

    I recently had to write a small Flickr API. I know many .Net API for Flickr already exist but I needed one for a Silverlight application. Whatever, it's only about building some querystrings so I did it by myself. It's been an opportunity to think again about a classical question: how to pass parameters...
  • Blog Post: WPF and Silverlight BookControls: source code available

    I have just finished converting the control to silverlight one week away from Silverlight 2 beta 2 release date, so I have been waiting for it ! For people to be able to compare code (quite similar) and behavior between the WPF and the Silverlight control, I have kept the same codeplex project...
  • Blog Post: Create a virtual book with your Flickr pictures

    Get some help with the video on this page: http://blogs.msdn.com/mitsu/archive/2008/05/14/show-your-flickr-pictures-in-a-silverlight-book.aspx
  • Blog Post: Show your Flickr pictures in a Silverlight book

    Here is a control that everybody can easily use. This allow you to display Flickr pictures in a blog post or in any web page. For example this set of pictures ( http://www.flickr.com/photos/benjamingauthey/sets/72157604570177365/ ), taken by my friend Benjamin during Paris Remix 08 can be browsed...
  • Blog Post: Tip: how to simplify value access from a dictionary ? With an extension method !

    I was getting really bored with testing .ContainsKey() at each time I wanted to read a value from a dictionary. Dictionary < string , string > dico; if (dico.ContainsKey( " key " )) value = dico[ " key " ]; else value = " default " ; A incredibly simple extension method solves this so...
  • Blog Post: Silverlight 2.0 Flippage prototype

    Enjoy, Code is coming very soon.. [Update]: code is now available here ! Mitsu Move the mouse cursor around the corners
  • Blog Post: Visual Linq query builder for Linq to Sql: VLinq

    Hi all, After almost one year of work and organization, I am very happy to share this project with you: http://code.msdn.microsoft.com/vlinq - new setup fixed (4/17/2008) The Visual Linq query builder is a Visual Studio 2008 addin. It's a designer that helps you create Linq to Sql queries in...
  • Blog Post: 3D with Silverlight 2.0 ?

    Just a short informative post: David Catuhe, a french MVP from south of France is demoing a Silverlight 3D engine preview... http://www.catuhe.com/NovaLight/NovaLight.aspx His company 'Vertice' is selling the Nova product (a full .Net 3D engine based on Managed DX). You can find some awesome demos here...
  • Blog Post: How to implement a many-to-many relationship using Linq to Sql ? Part II : add/remove support

    In my previous post ( http://blogs.msdn.com/mitsu/archive/2007/06/21/how-to-implement-a-many-to-many-relationship-using-linq-to-sql.aspx ), I had proposed a simple solution for implementing many-to-many relationships using Linq to Sql. Actually, this solution is a generic Linq solution. It's also working...
  • Blog Post: Linq GroupByMany dynamically

    Shawn asked me in my last post about GroupByMany how to use it dynamically. The answer is not easy. So here is a new post to answer to this interesting question. First you must learn a few things about being dynamic with linq. There is a very good sample from the C# team (actually we can consider...
  • Blog Post: WPF ObjectDumper and Linq to Sql deferred loading

    Video: WPF Object dumper demo The official C# 3.0 samples are providing a very useful ObjectDumper class that allows displaying any kind of object on the console output. All the child properties are also displayed and you can even define how deep you want to go through child properties. In this...
  • Blog Post: Playing with Linq grouping: GroupByMany ?

    Linq is a great technology to manage data directly from your .Net language. One of its features is grouping. Many people understand grouping like it is defined in Sql. Linq is implementing grouping quite the same way. Let's discover this syntax and how to make consecutive groups easier. Then we...
  • Blog Post: Prime number product using Linq

    Linq is SO FUN !!! I have read this article from a french developer about Linq used to find the list of all the prime numbers < n : http://blogs.developpeur.org/raptorxp/archive/2007/11/26/quizz-linq-la-liste-des-nombres-premiers-en-3-clauses.aspx Here is another sample: let's try to find the prime...
  • Blog Post: How to implement a many-to-many relationship using Linq to Sql ?

    In this article, I will show one possible solution to implement many-to-many relationship using Linq to Sql. Let's begin with some definitions and what Linq to Sql offers. A “many to many” relationship between two entities defines a kind of bi-directional “one to many” relationship for each of...
  • Blog Post: Anonymous methods: how to factorize surrounding statements like try-catch

    Here is the translation of one of my old french articles at a moment when I was trying to find what I could do with anonymous methods :p ! Here is the idea: Let's imagine we would like to centralize exception management. In numerous program (like windows API), a classical solution consist in implementing...
  • Blog Post: How to simulate modal windows inside a single WPF window using anonymous methods ?

    Introduction In our windows applications we are commonly using modal windows. Let's remind the idea. Using windows forms, once a window is created, we can choose to show it in a modal manner (form.ShowDialog()). The window then becomes THE front window between all the other windows of our application...
Page 1 of 2 (31 items) 12