Permalink
Browse files

my version of .NET doesn't seem to allow optional parameters

  • Loading branch information...
1 parent 058c39d commit fb6f5eb7bcd48a9bb55e45d77ee03e4271b491ec @kohsuke committed Mar 31, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 ServiceDescriptor.cs
View
7 ServiceDescriptor.cs
@@ -70,7 +70,12 @@ public ServiceDescriptor()
dom.Load(BasePath + ".xml");
}
- private string SingleElement(string tagName, bool optional = false)
+ private string SingleElement(string tagName)
+ {
+ return SingleElement(tagName, false);
+ }
+
+ private string SingleElement(string tagName, Boolean optional)
{
var n = dom.SelectSingleNode("//" + tagName);
if (n == null && !optional) throw new InvalidDataException("<" + tagName + "> is missing in configuration XML");

0 comments on commit fb6f5eb

Please sign in to comment.