News in the Category:
C#
Total posts: 999 | Sort by Views | Sort by Hits
Glavs Blog, March 16, 2010
Views: 105 | Hits 10
By default, when WCF emits a WSDL definition for your services, it can often contain many links to others related schemas that need to be imported. For the most part, this is fine. WCF clients underst...
Marquee de Sells: Chriss insight outlet, March 11, 2010
Views: 95 | Hits 10
In my previous list of WP7 user requests, I piled all of my user hopes and dreams for my new WP7 phone (delivery date: who the hell knows) onto the universe as a way to make good things happen. And al...
Marquee de Sells: Chriss insight outlet, March 11, 2010
Views: 106 | Hits 8
In my previous list of WP7 user requests, I piled all of my user hopes and dreams for my new WP7 phone (delivery date: who the hell knows) onto the universe as a way to make good things happen. And al...
Marquee de Sells: Chriss insight outlet, March 9, 2010
Views: 139 | Hits 23
My dear friend Craig Andera posted an implementation of a function that descends into a directory in a "lazy" manner, i.e. you get the first descendant back right away and not after all descendants ...
Scott Forsyths WebLog, March 9, 2010
Views: 151 | Hits 29
I often do development, testing or troubleshooting where I want to see all server variables available to a site. For example, when using a reverse proxy for load balancing, SERVER_ADDR, HTTP_HOS...
Radical Development, March 8, 2010
Views: 274 | Hits 94
A snippet is a small section of text or source code that can be inserted into the code of a program. Snippets provide an easy way to implement commonly used code or functions into a larger section of ...
Did it with .NET, March 4, 2010
Views: 142 | Hits 35
A few weeks ago, some of my colleagues and I were discussing the idiosyncrasies of
various programming languages (as we often find ourselves doingwere kind of geeky
that way), when one o...
Peter Brombergs UnBlog, March 2, 2010
Views: 56 | Hits 25
I was reading up on this recently and a couple of interesting points came to light: myString = creates a new instance of type String. myString = String.Empty does not. The key item is doing compa...
The Code Project Latest Articles, March 1, 2010
Views: 129 | Hits 27
Approaches describing a design to handle connection objects and pools in C#....
Misfit Geek, February 28, 2010
Views: 178 | Hits 29
I recently received an email from a developer who needed to implement a behavior around a users session timeout behavior. As you probably know, we can configure our application to expire a users ses...
Steven Smith, February 22, 2010
Views: 189 | Hits 32
Another quick tip related to the use of regions in your C# code you can turn off the default behavior of wrapping interfaced implementations in regions via the options dialog. Simply go to Tool...
Patrik Löwendahls shout, February 19, 2010
Views: 262 | Hits 74
One of my favorite features with C# 3.0 is the extension methods. An excellent way to apply some cross cutting concerns and great tool for attaching utility functions. Heavily used by the LINQ framewo...
John R. Durants WebLog, February 19, 2010
Views: 158 | Hits 35
In the next few posts I'll roll out a little project for Excel that uses Open XML and LINQ. The scenario for this little Office solution has to do with my massive collection of music. I've collected o...
Julia Lerman Blog - Dont Be Iffy..., February 18, 2010
Views: 177 | Hits 15
This is an edge case that I had not noticed, but was brought to my attention this morning in an email from Dave Russell who pointed me to this forum thread: EF4 Include method returns different result...
Dot Net Radio, February 17, 2010
Views: 175 | Hits 37
If you like C# at all then you know that Jon Skeet (writings, blog, StackOverflow) is the man when it comes to this language. Just look at his StackOverflow flair!!! He is the top dude by a long shot ...
C# Frequently Asked Questions, February 16, 2010
Views: 249 | Hits 55
In this post Ill try to answer the most common questions I find on forums and in documentation feedback about C# covariance and contravariance. Its a big topic for a single blog post, so expect to see...
Julia Lerman Blog - Dont Be Iffy..., February 14, 2010
Views: 396 | Hits 39
I had an email this morning from someone who was having trouble with reports populated using Entity Framework.
He was running a report repeatedly but changing the filter.
For example, Customers whose ...
Clarity Blogs: ASP.NET, February 13, 2010
Views: 245 | Hits 32
For the time keeping component that Ive mentioned before, one of the requirements was that it be able to run multiple actions or tasks at a given point in time. In case some of these tasks were partic...
Misfit Geek, February 12, 2010
Views: 171 | Hits 37
What happens when you need to protect your whole site so that only Authenticated users can access our site. Since I received this question twice this week I thought Id share a tip. To allow ONLY a...
Misfit Geek, February 10, 2010
Views: 183 | Hits 34
So I’m building an ASP.NET application to host Podcasts and in the post submission logic I want folks to be able to submit markup, but not JavaScript.
ASP.NET automatically traps suspicious pos...
The Code Project Latest Articles, February 9, 2010
Views: 207 | Hits 29
Code performs a SAML Post which can be used for Single Sign On Applications...
Patrik Löwendahls shout, February 3, 2010
Views: 174 | Hits 38
There is several cool language features available in C# 3.0, one of them is lambdas. Its a handy tool when you want to execute a few lines of code where a delegate is expected. Fredrik Normn and I cha...
C# Frequently Asked Questions, January 25, 2010
Views: 305 | Hits 76
Lets take a quick look at the object keyword first. Im not going to talk a lot about it because its been around since C# 1.0. This keyword is nothing more than a shortcut for System.Object, which is t...
Jeffrey Palermo, January 21, 2010
Views: 189 | Hits 34
This is a follow up to my article: Constructor over-injection anti-pattern. Ive title this a bit differently because as with any heuristic, there are degrees of goodness and smelliness. Co...
The Visual Basic Team, January 20, 2010
Views: 251 | Hits 28
A while back, I remember being asked if there was a simple way to expose a source XML document as an object with properties. That is, if the root XML element had a child element <Name>Doug</N...
ASP.NET Announcements, January 19, 2010
Views: 222 | Hits 47
Hello Friends,
I am developing an e-commerce product based website, but i am st...
Al Pascual, January 16, 2010
Views: 340 | Hits 46
tweetmeme_url = 'http://alpascual.com/blog/code-snip-removing-non-ascii-characters-in-c/';tweetmeme_source = 'alpascual'; C# Tip. To make sure you clean your string from non ASCII charact...
the telerik blogs, December 22, 2009
Views: 238 | Hits 11
The Astoria
(aka ADO.NET Data Services) team released an updated .NET 3.5 SP1 version of Astoria
last night. This version of Astoria is an inplace update and will overwrite your current
version of As...
peterkellner.net, December 21, 2009
Views: 482 | Hits 74
Say you have some logging in your code that finds something unusual going on. In my case, I have a DataContext that I check to make sure its not already open before I open it. ...
...
Peter Brombergs UnBlog, December 9, 2009
Views: 126 | Hits 9
Recently while contributing to a test suite that covers some 250 C# DAOs (Data Access Objects) I discovered a couple of issues:1) There was an implementation of PrimaryKey which is defined as a nullab...
ASP.NET Announcements, December 9, 2009
Views: 392 | Hits 33
The codeplex ClubStarterKit has new release written in a new codebase in C#. Here's a link to the new release. http://clubstarterkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=36375 Happy...
peterkellner.net, December 8, 2009
Views: 510 | Hits 94
This is probably something pretty simple, hardly worth blogging about, but it took me a little while (15 minutes) to figure out how to open a file ReadOnly with StreamReader, so......
Jeffrey Palermo, December 7, 2009
Views: 287 | Hits 52
All the material Ive seen talking about reading from .Net configuration files concentrates on explaining the API. The API of ConfigurationManager exposes members such as: public static class ...
K. Scott Allen, December 7, 2009
Views: 329 | Hits 97
Aaron Feng posted recently on The death of if-else, if, and else. In the post Aaron rewrote some JavaScript conditional checks using a dispatch table type approach. Following along with Aarons post ...
The Code Project Latest Articles, December 6, 2009
Views: 397 | Hits 76
This article describes how to wrap Eval() in a tiny JScript class, compile it into an assembly and call it from C# to evaluate expressions at runtime....
Julia Lerman Blog - Dont Be Iffy..., December 5, 2009
Views: 351 | Hits 73
One of the things I struggled with in n-Tier apps in EFv1 was the options for reconstructing entity state on the server side in order to call SaveChanges when modified data was passed in from the clie...
the telerik blogs, December 2, 2009
Views: 355 | Hits 3
digg_url = "http://www.stephenforte.net/PermaLink,guid,fcd86df8-7523-4c31-9015-b085548d0d3f.aspx";digg_title = "Using OpenAccess and Telerik Reporting with SQL Azure";digg_bgcolor = "#FFFFFF";di...
Frans Boumas blog, December 2, 2009
Views: 367 | Hits 18
In .NET there's a class called StringComparer. It has some handy helpers, like the InvariantCultureIgnoreCase StringComparer. These classes also implement a method called GetHashCode(string), which pr...
the telerik blogs, December 2, 2009
Views: 374 | Hits 10
In the first post we have described the ways to map a foreign key reference in the database to a reference, a collection or both in memory. This post continues the topic with the ways to map a join ta...
K. Scott Allen, December 2, 2009
Views: 282 | Hits 30
In the MvcContrib project there is an HTML helper for putting data into a <table>. The syntax looks like this: <%= Html.Grid(item.Addresses)
.Columns(column =>
...
Simple Talk, November 26, 2009
Views: 254 | Hits 25
We asked Phil to come up with a simple explanation of connection strings. We somehow weren't expecting a 'quote of the day' for your database, or a C# application to gather data from the internet. How...
K. Scott Allen, November 24, 2009
Views: 361 | Hits 43
Specifically IronPython and IronRuby. Consider this IronPython got underway in July of 2004. Five years later it appears IronPython is still not a candidate to be a first class language in the ...
The Code Project Latest Articles, November 22, 2009
Views: 392 | Hits 105
Dataset and data table without using datasource...
Laurent Duveau, November 21, 2009
Views: 370 | Hits 23
Silverlight 4 (currently in beta) adds support for Clipboard!
In Silverlight 3 we had copy/paste available in the Textbox, programmatic access could be done, some IE only solution exists vi...
JohnPapa.net, November 18, 2009
Views: 339 | Hits 31
One of the new features of Silverlight 4 Beta is the addition of the IDataErrorInfo interface. In Silverlight 3 we throw exceptions when a property value is invalid. The IDataErrorInfo interface has b...
Julia Lerman Blog - Dont Be Iffy..., November 15, 2009
Views: 255 | Hits 16
In an earlier post, I wrote about the new awesomeness that ASP.NET 4.0s Dynamic Data brings to many to many relationships. I frequently notice that most DD demos demonstrate creating the data model w...
Laurent Duveau, November 14, 2009
Views: 491 | Hits 21
Microsoft has released a free Bing Maps Silverlight control. I gave it a try and I must say I'm really impressed by the quality and level of features of this control. The UX is very nice, it uses De...
Jeffrey Palermo, November 11, 2009
Views: 287 | Hits 42
I want static behavior between assemblies/libraries/packages but dynamic abilities within. JeffreyPalermo.com With C# 4.0, code within method can be dynamic because of the new dynamic keyword. ...
The Code Project Latest Articles, November 10, 2009
Views: 479 | Hits 130
Preventing Session Timeouts in C# ASP .NET...
Jesse Liberty - Silverlight Geek, November 6, 2009
Views: 415 | Hits 39
This is the second in my new series on Getting Started With Silverlight (please see the first article for information on the series and where to get the software you need). Dont Start wit...