samdnp

Stories kicked by friends of samdnp

C# 5 PropertyChanged - No more magic strings!(www.robfe.com)

submitted by dpetersondpeterson(4397) 8 months, 5 days ago

Changes in C# 5 mean no more NotifyPropertyChanged("SomeVariable"), which is a common source of bugs. It also means we no longer have to suffer the performance degradation associated with using workarounds such as lambda's just for the sake of compile-time checking. From here on out, the compiler does the work for us. read more...

2 comments |category: |Views: 588

tags: another

3 ways to Sort in Descending order via lambdas(www.ginktage.com)

submitted by isenthilisenthil(2309) 8 months, 17 days ago

3 ways to Sort in Descending order via lambdas In C# , one can sort the List of Objects using Lambdas easily . Until now , i found the LINQ Query to be more easy to sort but after using the Lamba expression , i feel that the lambda expression can also be used effectively to sort in descending order . For example , i use the below class for the datapublic class Movie { public string MovieName { get; set; } public string Actor { get; set; } } read more...

3 comments |category: |Views: 34

tags: another

C# compiler uses Duck-Typing, not IEnumerable, for foreach loops(blogs.msdn.com)

submitted by dpetersondpeterson(4397) 8 months, 18 days ago

Turns out that according to this post, and the C# 1.0 specification, that foreach loops in C# do not use IEnumerable (as found in the documentation) but rather duck-typing. Not necessarily consequential to our every day programming lives, but interesting nonetheless. read more...

1 comment |category: |Views: 70

tags: another

SignalR - The ASP.Net alternative to Node.js + Socket.IO + NowJS(www.hanselman.com)

submitted by dpetersondpeterson(4397) 8 months, 28 days ago

Scott Hanselman provides a quick introduction to SignalR and shows off a 12 line chat program read more...

1 comment |category: |Views: 728

tags: another

Share C# Anonymous Types across Functions and Scope(blogs.msdn.com)

submitted by crpietschmanncrpietschmann(11.3k) 8 months, 28 days ago

So earlier today I was lamenting that an anonymous type can't be shared between functions with Wes Dyer, when he said "Well actually they can..." read more...

add a comment |category: |Views: 7

tags: another

Dependency Injection Framework Speedtest(philipm.at)

submitted by dpetersondpeterson(4397) 9 months, 14 days ago

Philip Mateescu shares with us an in-depth and well documented speed test of Autofac v2.4.5.724, Castle.Windsor v2.5.3, Ninject v2.2.0.0, Spring.Net v1.3.1, StructureMap v2.6.1, and Microsoft Unity v2.1.0.0. Spoiler alert, Unity loses big time ;-) read more...

6 comments |category: |Views: 316

tags: another

There's a Proxy In My Boots! - Entity Framework POCO(blogs.dotnetkicks.com)

submitted by dpetersondpeterson(4397) 9 months, 15 days ago

In this post I provide a small extension method that can be used to create a clone of a proxied Entity Framework POCO entity for "disconnected" editing. read more...

add a comment |category: |Views: 121

tags: another

15 Awesome ASP.NET Tips(www.dotnetcurry.com)

submitted by mopenmopen(3596) 9 months, 21 days ago

Some cool ASP.NET tips and tutorials you will find useful read more...

1 comment |category: |Views: 97

tags: another

Thoughts on Micro-ORMs(elegantcode.com)

submitted by dpetersondpeterson(4397) 9 months, 21 days ago

Chris Brandsma discusses some of the more popular micro-ORMs available today. In the comments, readers point out other alternatives to those listed by Chris. For those of you looking for a simple X vs Y comparison of micro-ORMs like Dapper, Simple.Data, and Massive, this may come in handy. read more...

add a comment |category: |Views: 40

tags: another

Minimalist Coding Guidelines(www.codeproject.com)

submitted by dpetersondpeterson(4397) 9 months, 21 days ago

A nice write-up on generic coding standards that can be applied to any language by any programmer. There are years of experience (42, according to the author) poured into this piece, and it shows. read more...

2 comments |category: |Views: 28

tags: another

Fun With jQuery Deferred(intridea.com)

submitted by crpietschmanncrpietschmann(11.3k) 1 year, 3 months ago

If you've upgraded to the recently released jQuery 1.5 you may have heard about the fancy new AJAX facilities that allow you to define things like this: var jax = $.ajax({ url: '/some/url' }) jax.success(function() { alert("It worked!");") }); read more...

add a comment |category: |Views: 27

tags: another

ASP.NET MVC Tip #48 – Disable Request Validation(stephenwalther.com)

submitted by crpietschmanncrpietschmann(11.3k) 1 year, 3 months ago

By default, the ASP.NET MVC framework prevents you from submitting form data that contains potentially malicious content. This feature is called request validation. This is a good feature. You don't want people sneaking scripts into your website that can steal passwords or other sensitive user information. Normally, you want to leave request validation enabled. Unlike a Web Forms application, you cannot disable request validation by using the <%@ Page ValidateRequest=”false” %> directive. You also cannot disable request validation in the web configuration (web.config) file. If you want to disable request validation then you must use the [ValidateInput] attribute. You apply the [ValidateInput] attribute to the controller action that accepts the form input. read more...

add a comment |category: |Views: 41

tags: another

ASP.NET MVC 3 RTM Released!(www.microsoft.com)

submitted by crpietschmanncrpietschmann(11.3k) 1 year, 4 months ago

ASP.NET MVC 3 is a framework for developing highly testable and maintainable Web applications by leveraging the Model-View-Controller (MVC) pattern. The framework encourages developers to maintain a clear separation of concerns among the responsibilities of the application – the UI logic using the view, user-input handling using the controller, and the domain logic using the model. ASP.NET MVC applications are easily testable using techniques such as test-driven development (TDD). The installation package includes templates and tools for Visual Studio 2010 to increase productivity when writing ASP.NET MVC applications. For example, the Add View dialog box takes advantage of customizable code generation (T4) templates to generate a view based on a model object. The default project template allows the developer to automatically hook up a unit-test project that is associated with the ASP.NET MVC application. Because the ASP.NET MVC framework is built on ASP.NET 4, developers can take advantage of existing ASP.NET features like authentication and authorization, profile settings, localization, and so on. read more...

1 comment |category: |Views: 212

tags: another

Use Non-default Membership Provider for WCF Authentication Service(msdn.microsoft.com)

submitted by crpietschmanncrpietschmann(11.3k) 1 year, 6 months ago

This topic shows how to programmatically select the membership provider when you call the ASP.NET authentication service by using Windows Communication Foundation (WCF). You can use a non-default membership provider when you have to authenticate users by using different membership providers, based on information that you get at run time. To authenticate through a non-default membership provider, you create an event handler for the Authenticating event. read more...

add a comment |category: |Views: 144

tags: another

ASP.NET MVC 3 Release Candidate published(weblogs.asp.net)

submitted by dotnetchrisdotnetchris(157) 1 year, 6 months ago

This morning the ASP.NET team shipped the ASP.NET MVC 3 RC (release candidate). You can download it here. read more...

add a comment |category: |Views: 6

tags: another

Silverlight Cached Assemblies and you can to!(timheuer.com)

submitted by crpietschmanncrpietschmann(11.3k) 1 year, 6 months ago

One of the new features I mentioned in my What’s new/changed post on Silverlight 3 is the fact that any application developer can take advantage of the cached assembly functionality provided by Silverlight. Let me show you how and start with the current situation. read more...

add a comment |category: |Views: 5

tags: another