Lindsay Donaghe's Library tagged → View Popular
Rocket Surgery » .NET Web Service Studio 2.0 - Download Here
This is a tool that lets you call a webservice without having to create a test project/proxy. It used to be on GotDotNet but since they went away this seems to be one of the few places you can still get the app.
Linq: The Missing ToDictionary Extension Method Overload - Omer van Kloeten's .NET Zen
An extension method for getting a generic dictionary back from a collection of KeyValuePairs... just a bit of a shortcut from using the overload with two params, but handy.
-
public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> enumeration)
{
// Check to see that enumeration is not null
if (enumeration == null)
throw new ArgumentNullException("enumeration");
return enumeration.ToDictionary(item => item.Key, item => item.Value);
}
Yield and generics rock! - Tales from the Evil Empire
How to create a filter for generic lists (or other IEnumerable objects) without creating a temporary list first. Illustrates how to use the yield statement as well and create your own generic enumerator.
-
public sealed class FilteredEnumerable<T> : IEnumerable<T>, IEnumerable {
private IEnumerable<T> _enumerable;
private Predicate<T> _filter;
public FilteredEnumerable(IEnumerable<T> enumerable, Predicate<T> filter) : base() {
_enumerable = enumerable;
_filter = filter;
}
IEnumerator<T> IEnumerable<T>.GetEnumerator() {
foreach (T item in _enumerable) {
if (_filter == null || _filter(item)) {
yield return item;
}
}
}
IEnumerator IEnumerable.GetEnumerator() {
return (IEnumerator)(((IEnumerable<T>)this).GetEnumerator());
}
} -
string[] stringsToFilter = new string[] {"Red", "Green", "Blue", "Pink"};
Predicate<string> filter = delegate(string stringToFilter) {
return (stringToFilter.IndexOf('e') != -1);
};
filteredStrings = new FilteredEnumerable<string>(stringsToFilter, filter);
Microsoft Live Labs : Volta
A library that is similar to RJS in Ruby on Rails. It lets you write code in C# which can be spilt into tiers. The client tier is translated into the equivalent Javascript. Still a CTP and not sure how it fits in with ASP.Net (or if it does) yet.
Kyle Baley - The Coding Hillbilly
A good blog on .Net and ASP.Net programming topics plus a bit of country humor.
CodePlex.SpaceBlock - Home
An open-source Windows application written in .Net to manage your S3 account buckets and files. The most useful feature (that you don't have in S3 Fox) is the ability to generate a signed URL for sharing files with people.
The New Lambda Expressions Feature in C# 3.0
Code sample that compares performing the same function using anonymous functions, lambda and generic extensions. Good examples to see the differences in the syntax approaches.
Tip/Trick: Building a ToJSON() Extension Method using .NET 3.5 - ScottGu's Blog
Tutorial example of how to use object extension in .Net 3.5. Create a JSON convertor for an object. Interesting implications here, similar to prototyping in Javascript.
Tip/Trick: Automating Dev, QA, Staging, and Production Web.Config Settings with VS 2005 - ScottGu's Blog
How to make the shift from environment to environment a bit easier with VS2005+ using config files for each enviornment with the VS Configuration Manager.
DotNet Ajax Frameworks - Ajax Patterns
A list and summary of features of many of the ASP.Net integrated Ajax libraries. Good reference to explore options.
If broken it is, fix it you should : Are you aware that you have thrown over 40,000 exceptions in the last 3 hours?
- An article about exceptions in .Net, why you should use them sparingly and how they can affect performance. - bluecockatoo on 2006-08-23
Selected Tags
Related Tags
Sponsored Links
Top Contributors
Groups interested in .Net
Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »
Join Diigo
