diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-04-22 10:22:28 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-04-22 10:22:28 -0700 |
commit | d0e1c350cdf1e893b126076ea418a07c61755acc (patch) | |
tree | 057969a7b2c964ba3eea7274543fc4b0372811e8 /src | |
parent | ed679ec8c4e60f2fe1f2ea074c0af90267a8af5e (diff) | |
download | DotNetOpenAuth-d0e1c350cdf1e893b126076ea418a07c61755acc.zip DotNetOpenAuth-d0e1c350cdf1e893b126076ea418a07c61755acc.tar.gz DotNetOpenAuth-d0e1c350cdf1e893b126076ea418a07c61755acc.tar.bz2 |
Fixed build break caused by bad rebase.
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth/Configuration/TypeConfigurationCollection.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth/Configuration/TypeConfigurationCollection.cs b/src/DotNetOpenAuth/Configuration/TypeConfigurationCollection.cs index f8813b5..fa3518b 100644 --- a/src/DotNetOpenAuth/Configuration/TypeConfigurationCollection.cs +++ b/src/DotNetOpenAuth/Configuration/TypeConfigurationCollection.cs @@ -18,7 +18,8 @@ namespace DotNetOpenAuth.Configuration { /// </summary> /// <typeparam name="T">The type that all types specified in the elements must derive from.</typeparam> [ContractVerification(true)] - internal class TypeConfigurationCollection<T> : ConfigurationElementCollection { + internal class TypeConfigurationCollection<T> : ConfigurationElementCollection + where T : class { /// <summary> /// Initializes a new instance of the TypeConfigurationCollection class. /// </summary> @@ -46,8 +47,8 @@ namespace DotNetOpenAuth.Configuration { internal IEnumerable<T> CreateInstances(bool allowInternals) { Contract.Ensures(Contract.Result<IEnumerable<T>>() != null); return from element in this.Cast<TypeConfigurationElement<T>>() - where element.CustomType != null - select element.CreateInstance(default(T), allowInternals); + where element.CustomType != null + select element.CreateInstance(default(T), allowInternals); } /// <summary> |