Welcome to Sol 3 Sign in | Join | Help

ASPInsiders

Aggregation of ASPInsiders and Microsoft ASP.NET team member blogs.

Browse by Tags

All Tags » C#   (RSS)
C# style conventions: more religious wars coming!
Yes, it's one of those posts where you either agree or disagree completely :) Anyway, after having a 15 minutes discussion with my friend Paulo (which, btw and as usual, disagrees with me) yesterday at 1AM, I've decided to write this post. The Read More...
Displaying Version information in C# ASP.NET 2.0 and 3.5.
I needed to display the application version in a file based ASP.NET 3.5 application written in Visual Basic. I wrote the following methods in my AssemblyInfo.vb file in the App_Code directory and it worked! Out popped the Version Number of 0.0.5.0 instead Read More...
How to see if a string contains another…
Ok, so you already know the answer, right? That’s why the String class has the Contains method. And it will work until you need to explicitly need to use a different StringComparison option than the one that is used by default. If like me, you know that Read More...
The C# compiler is really smart, but…
I’m still not understanding why it won’t give me a warning when I create an internal class with a public method. Here’s an example: class MyInternalClass{    public void Test(){} //no compiler warning } Ok, at the end of the day, Test is really Read More...
Pushing Data to a Silverlight Client with a WCF Duplex Service – Part II
In Part 1 of this series on pushing data to a Silverlight client with a WCF polling duplex service I demonstrated how service contracts and operations can be defined on the server.  WCF has built-in support for duplex communication (two-way communication Read More...
TechEd Orlando :: Compiler Tricks
Here is the download project for my Compiler Tricks talk at TechEd Orlando, 2008. The talk focuses on what the C# 3.x compiler does with new syntax, and how you can use most of the 3.x syntax, when targeting a 2.0 build. This doesn't mean you can use Read More...
Pushing Data to a Silverlight Client with a WCF Duplex Service - Part I
Silverlight provides several different ways to access data stored in remote locations. Data can be pulled from Web Services and RESTful services and even pushed from servers down to clients using sockets (see my previous articles on sockets here , here Read More...
Parallel Extensions June CTP is out
The Parallel Extensions CTP is out . It seems like now the PLINQ does no longer depends on the Thread pool. Instead of doing that, PLINQ now relies on the Task Parallel Library. Interesting...it's time to run some more tests... Share this post: email Read More...
Using Postsharp for solving the inexisting multi-inheritance problem
Well, not really... As you surely know, you cannot have mutiple inheritance in .NET. That really sucks. Yes, I agree that multiple inheritance might bring several problems but when applied correctly, it really helps. Don't believe me? Ok, take a look Read More...
S#arp Architecture: first impressions
Today I've finally got some time to take a look at Billy McCafferty's S#arp Architecture . Comparing with the old NHibernate best practices project, I think it's fair to say that there are several important improvements. For instance, there's Read More...
Jon Skeet on the Mandelbrot benchmark
Man, you gotta love Jon Skeet ! Just read this post on a benchmark he performed on the generation of the Mandelbrot set between several single threaded and multithreaded approaches. Cool stuff! Share this post: email it! | bookmark it! | digg it! | reddit! Read More...
LINQ To XML resume
I've thought it would be good to post an entry which aggregates all my LINQ To XML entries for future reference: LINQ To XML: I'm hooked! LINQ To XML: building documents with a functional approach LINQ To XML: working with documents LINQ To XML: Read More...
LINQ To XML: applying LINQ expressions
Now that we know the basics, it's time to see how we can use this new API with LINQ. In this post, we'll start by seeing how we can filter an XML document and then we'll how easy it is to transform an existing XML tree into a different one. Read More...
Working with the GridView and the System.Data.Linq.Binary Type
I'm working with a database table that has a RowVersion field defined as a TimeStamp data type.  The TimeStamp field is there to add concurrency into the application to ensure a row hasn't changed while a user is trying to update or delete it.  Read More...
Service Pack 1 Beta Released for Visual Studio 2008 and the .NET Framework 3.5
Microsoft just released the SP1 beta for Visual Studio 2008 and the .NET Framework 3.5 and it includes a huge number of new features and enhancements.  Check out Scott Guthrie's blog for details but here's a quick list of what's included: ASP.NET Read More...
More Posts Next page »