summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/DotNetOpenAuth/Configuration/TypeConfigurationElement.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth/Configuration/TypeConfigurationElement.cs b/src/DotNetOpenAuth/Configuration/TypeConfigurationElement.cs
index 0c350cb..c8cf2aa 100644
--- a/src/DotNetOpenAuth/Configuration/TypeConfigurationElement.cs
+++ b/src/DotNetOpenAuth/Configuration/TypeConfigurationElement.cs
@@ -100,7 +100,7 @@ namespace DotNetOpenAuth.Configuration {
source = HttpContext.Current.Server.MapPath(source);
}
using (Stream xamlFile = File.OpenRead(source)) {
- return this.CreateInstanceFromXaml(xamlFile);
+ return CreateInstanceFromXaml(xamlFile);
}
} else {
return defaultValue;
@@ -119,7 +119,7 @@ namespace DotNetOpenAuth.Configuration {
/// XamlSource attribute is never used, the PresentationFramework.dll never need
/// be present.
/// </remarks>
- private T CreateInstanceFromXaml(Stream xaml) {
+ private static T CreateInstanceFromXaml(Stream xaml) {
return (T)XamlReader.Load(xaml);
}
}