Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » .Net » Tips
Chris Tavarez has provided a handy adapter ( UnityServiceLocator ) for using ServiceLocator to resolve types from a Unity container. You can then use ServiceLocator.SetLocatorProvider() to register the UnityServiceLocator as the default provider for ServiceLocator. Read More...
A custom Role Provider is a very useful tool for adding custom authorization to your ASP.NET and/or ASP.NET MVC applications.  A common use for a custom Role Provider is when you have role information stored in a data store that differs from the Read More...
When using Unity as your IoC container , one way to configure the container is to use an configuration section in your app.config or web.config file.  A simplified example of this configuration is shown below: 1: <? xml version ="1.0" Read More...
If you are like me, then you might have multiple Console applications in your projects folder that you use for testing small chunks of code.  I think at one point recently, I was up to ConsoleApplication28 before I cleaned up the unused projects.  Read More...
The answer: When it is a SortedList. Here is one issue that I have with the Framework.  The name SortedList<T> implies that the class inherits IList<T>, but it does not.  In fact, it implements IDictionary<TKey,TValue>. This Read More...
Here is the scenario:  You get a .NET DLL from somewhere that provides some really cool functionality that you need for your BizTalk/SharePoint/etc application.  So you go to install the utility into the GAC, and then you realize that the DLL Read More...
I can't remember where I picked this tip up from, but I have found it useful on many occasions so I thought that I would share it. Sometimes I need to reference the strong named assembly that I am writing in a config file or some other location, and I Read More...
 
Page view tracker